Eclipse: Difference between revisions
No edit summary |
No edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
** Help-> Install New Software -> Add... -> Find latest PDT site [ here] -> add https://wiki.eclipse.org/PDT/Installation | ** Help-> Install New Software -> Add... -> Find latest PDT site [ here] -> add https://wiki.eclipse.org/PDT/Installation | ||
** e.g. for Mars1, use http://download.eclipse.org/tools/pdt/updates/3.6/ | ** e.g. for Mars1, use http://download.eclipse.org/tools/pdt/updates/3.6/ | ||
* Install JavaScript | |||
* Install WTP | * Install WTP | ||
** Help-> Install New Software -> Add... -> add -> "WTP Mars", http://download.eclipse.org/webtools/repository/mars/ -> select WTP 3.7.1 | ** Help-> Install New Software -> Add... -> add -> "WTP Mars", http://download.eclipse.org/webtools/repository/mars/ -> select WTP 3.7.1 | ||
Line 17: | Line 18: | ||
** Install CDT Main Features; CDT Optional Features: autotools memoryview misc multicore qt unittest vc++ visualizer | ** Install CDT Main Features; CDT Optional Features: autotools memoryview misc multicore qt unittest vc++ visualizer | ||
* Close eclipse and update the settings folder to point to the common shared location (make sure the development/config repo is available) | * Close eclipse and update the settings folder to point to the common shared location (make sure the development/config repo is available) | ||
** Review the eclipse scripts to save/restore eclipse settings, it's nasty - keep looking for better ways to share settings across installations | |||
** use shared eclipse settings, to avoid problems like [http://stackoverflow.com/questions/13893942/eclipse-c-formatter-puts-new-line-before-method-identifiers this]. | ** use shared eclipse settings, to avoid problems like [http://stackoverflow.com/questions/13893942/eclipse-c-formatter-puts-new-line-before-method-identifiers this]. | ||
cd ~/development/eclipse-workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings | cd ~/development/eclipse-workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings | ||
ln -fs /home/m/development/config/common/home/m/development/eclipse-workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/* . | ln -fs /home/m/development/config/common/home/m/development/eclipse-workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/* . | ||
* Import all the existing projects that you need (A better Trader, Hang The DJ, etc.). You can import existing projects from ~/development, easy peasey! | * Import all the existing projects that you need (A better Trader, Hang The DJ, etc.). You can import existing projects from ~/development, easy peasey! | ||
* Install the [https://marketplace.eclipse.org/content/terminal-plug terminal plugin] so you can run CI right in eclipse. Just drag the "install" button there to the eclipse toolbar. | * Install the [https://marketplace.eclipse.org/content/terminal-plug terminal plugin] so you can run CI right in eclipse. Just drag the "install" button there to the eclipse toolbar. | ||
* To view/change customized keys: | |||
Shift+Ctrl+j customize keys even further! :-) | |||
* Install [https://marketplace.eclipse.org/content/practically-macro-0 Practically Macro] for ToDo.txt macros | |||
Other things that might help: | |||
* Set up automatic refresh: | |||
Preferences > General > Startup and shutdown > Refresh workspace on startup | |||
Preferences > General > Workspace > Refresh automatically | |||
* put ~m/development/eclipse/eclipse.ini into config | |||
|} | |} | ||
{| class="mw-collapsible mw-collapsed wikitable" | {| class="mw-collapsible mw-collapsed wikitable" | ||
Line 32: | Line 41: | ||
* Configure the project according to these [[Eclipse project configuration screenshots]] | * Configure the project according to these [[Eclipse project configuration screenshots]] | ||
|} | |} | ||
{| class="mw-collapsible mw-collapsed wikitable" | |||
! Eclipse ToDo.txt macros | |||
|- | |||
| Set up two [https://marketplace.eclipse.org/content/practically-macro-0 PracticallyMacro] macros, tdw and tda. | |||
tdw (ToDo: Go To Working) | |||
Find: // ^ DONE ^ | |||
[x] case sensitive, search forward, wrap | |||
Line Start | |||
Move cursor down (x4) | |||
tda (ToDo: archive) | |||
Move cursor right (this ensures that the next backwards search gets just what we want) | |||
Find: ^[^ \r\n] | |||
[x] reg expression | |||
Line start | |||
Find: .[\s\S]+?[\n\r]+[^ \r\n] | |||
[x] search forward, reg expression | |||
Select Line Start | |||
Cut | |||
Find: // ^ DONE ^ | |||
[x] case sensitive | |||
Line Start | |||
Move cursor up | |||
Paste | |||
Move cursor down (x5) | |||
|} | |||
{| class="mw-collapsible mw-collapsed wikitable" | {| class="mw-collapsible mw-collapsed wikitable" | ||
! Eclipse annoyances | ! Eclipse annoyances | ||
Line 39: | Line 74: | ||
* To get problems to reset on build, I had to turn on (for all configs, then exit/restart): Project->Properties->C++ Build->Settings->Error Parsers-> [x] GNU gmake Error Parser 7 | * To get problems to reset on build, I had to turn on (for all configs, then exit/restart): Project->Properties->C++ Build->Settings->Error Parsers-> [x] GNU gmake Error Parser 7 | ||
* Click only ERRORS on Annotations dropdown arrow to bypass noise - I still can't get Ctrl-[,|.] to navigate errors, insanity | * Click only ERRORS on Annotations dropdown arrow to bypass noise - I still can't get Ctrl-[,|.] to navigate errors, insanity | ||
* To set bookmarks in a file, you MUST open it via the Navigator / Project explorer. Drag/drop to IDE will disable bookmarking (doh!!). | |||
|} | |} | ||
{| class="mw-collapsible mw-collapsed wikitable" | {| class="mw-collapsible mw-collapsed wikitable" | ||
Line 72: | Line 108: | ||
(name it and make sure Show all files is selected) | (name it and make sure Show all files is selected) | ||
|} | |} | ||