Eclipse: Difference between revisions
No edit summary |
No edit summary |
||
Line 43: | Line 43: | ||
! Eclipse ToDo.txt macros | ! Eclipse ToDo.txt macros | ||
|- | |- | ||
| Set up two macros, tdw and tda. | | Set up two PracticallyMacro macros, tdw and tda. | ||
tdw (ToDo: Go To Working) | tdw (ToDo: Go To Working) |
Revision as of 19:32, 25 March 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: ^[^ \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 tda: tda ToDo: archive Find: // ^ DONE ^ [x] case sensitive, search forward, wrap Line Start Move cursor down (x4) |
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) |