Eclipse: Difference between revisions
No edit summary |
No edit summary |
||
(6 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 40: | 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 |
Latest revision as of 14:31, 13 April 2016
Eclipse Mars installation |
---|
We always want these: CDT, PDT, WTP (Web Tools Platform, includes JSTP for Javascript support)
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/* .
Shift+Ctrl+j customize keys even further! :-)
Other things that might help:
Preferences > General > Startup and shutdown > Refresh workspace on startup Preferences > General > Workspace > Refresh automatically
|
Eclipse settings for all portable C++ boost projects |
---|
|
Eclipse ToDo.txt macros |
---|
Set up two 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) |
Eclipse annoyances |
---|
|
eclipse java project layout format |
---|
Eclipse uses a workspace which holds projects. Java apps written with Eclipse are organized as follows:
|
eclipse new project from existing code |
---|
You can set up a new project without specifying anything about it, just to browse the code.
File->New Project->Empty Name: bbby2e05 Location: c:\ [ ] Create subdir --- Show all files select everything in include, rc->include in project repeat for src dont worry about mak or install folders for now, just add files later as needed save all --- then set up a repo for it! cd c:\bbb2e05 git init (plus add cpp c hpp h, commit, set up daily, sync on bitpost) |
It is also possible to set up a C++ makefile or PHP project from existing code.
(rclick projects area)->New->Project...->C++->Makefile Project with existing code (name it and make sure Show all files is selected) |