Skip to content

Latest commit

 

History

History
243 lines (144 loc) · 9.28 KB

Hints.md

File metadata and controls

243 lines (144 loc) · 9.28 KB

Hints

Eclipse Distributions

You can get Nodeclipse plugin in any Eclipse-based IDE. Recommended are standard Eclipse distributions or Nodeclipse NTS for Windows (where it is already pre-installed).

Adobe Flex Builder

Nodeclipse runs perfectly well inside Adobe Flex Builder

Flash-Builder.png

Aptana Studio

Aptana-with-Nodeclipse.png

Before 0.4 was issue #15 Support black background color schemes. Could be walked around by installing Eclipse Color Theme and changing theme to Roboticket or other white background. Window->Preferences->General->Appearance->Color Theme

When debugging, the issue #15 is still present, when Chromium Editor (JS Editor) is opened. For your own sources be sure to use Nodeclipse Editor.

Aptana uses also cannot simply install Nodeclipse plugin, as Aptana will not resolute to get required (since 0.4) JSDT dependency. The solution is provided in Enide is NJSDT (alternative to JSDT), or manually from https://bitbucket.org/nexj/updatesite/raw/default for NJSDT+NJSDoc (thanks to @johnpeb)
The solution is also to install JSDT from Eclipse update site http://download.eclipse.org/releases/juno or http://download.eclipse.org/releases/kepler

Getting-JSDT.PNG

Or you can take Nodeclipse NTS and add Aptana plugins (Update Site URL: http://download.aptana.com/studio3/plugin/install).

Select JVM for Eclipse instance

Add -vm option in eclipse.ini, that is in Eclipse folder. Quote:

Note the format of the -vm option - it is important to be exact:
	The -vm option and its value (the path) must be on separate lines.
	The value must be the full absolute or relative path to the Java executable, not just to the Java home directory.
	The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM. 

Example:

...
-vm
C:\Program Files\Java\jdk1.7.0_11\bin\javaw.exe
-vmargs
-Xms40m
-Xmx512m

Editors

JavaScript Editors

In Eclipse ecosystem there are a lot of JavaScript Editors. Some examples:

  • JSDT project
  • VJET project
  • Nodeclipse ships with it's own Node Editor and ...
  • JS Editor (from Chromium project)

JavaScript Code Assist

Eclipse standard JavaScript Development Tools (JSDT) (wiki) already includes JavaScript Editor with Code/Content Assist function.

Go to Preferences->JavaScript->Editor->Content Assist

Eclipse-Preferences-JavaScript-Editor-ContentAssist.png

Inferred Types

In order for some JDT-based functionality (such as code completion) to work correctly, class type information needs to be available. This information is not available in JavaScript, but it can be inferred in many cases.

Code assist for some libraries and framework is provided as extensions, for example Code assist for jQuery.

CoffeeScript Editor

Use CoffeeScriptSet.p2f to quickly install.
Warning: this plugin created by Adam Schmideg was not updated for a year. see About CoffeeScript support in Nodeclipse

CoffeeScriptEditor.png

JSON Editor

Eclipse-Configure-JSON-Association.PNG

JSON means JavaScript Object Notation, so you just have to have any JavaScript editor and associate the *.json files with it (this is default since Nodeclipse 0.4):

Window > Preferences
General > Editors > File Associations
Add... > File type: *.json
Select *.json file type > Add... (Associated editors) > JavaScript Editor
Make it default

Now you can now open JSON files with the JavaScript editor (with syntax highlight), use the formatter and set your favorite color theme with Eclipse Color Theme.

Eclipse-Preferences-FileAssociations.png

Alternatively, if you need/like good Outline, you can install JSON Editor plugin.

JSON-Editor.png

Editor Minimap

There is experimental support for minimap.

Nodeclipse-with-Minimap.png

(Only in Nodeclipse NTS, close when don't like)

Launch npm

  1. (Switch to Node perspective)

  2. run as -> npm....

run-npm-at-project.jpg

See also npm documentation

Thank to George Pang for question.

Quick Search

Press Ctrl+Shift+L to open QuickSearch Dailog, where you can search anything anywhere superquick.

Eclipse-QuickSearch.png

Start Explorer or Shell

Right-click folder in Project Explorer or selected path in an Editor, then

StartExplorer.png

Git

Press Ctrl+Shift+3 to commit current file or file set.

Update several Git repositories at once

Just select them with mouse (holding Ctrl)
Right-click any of them Team -> Pull
See result.

EGit-update-several-repositories-at-oce.png

Conflict resolution

When pulling, EGit (as any Git) does fetch then merge.
EGit will show error message if change conflict has happened. And Merging will stop.

You can use Team -> Synchronize, to compare local git workspace and with git repository.

EGit-status-icons.png

Then you may select Replace With -> Branch, Tag, or Reference...

EGit-replace-with-remote

GitHub Flavored Markdown (GFM) Viewer

See markdown .md files as they are on GitHub. Very useful when browsing node_modules folder. Minimum recommended version is 1.1.1 .

Eclipse-Node-IDE-Overview-0.4.3.png

To open GFM View right click any .md file and select Show in GFM view. (Since 1.1.1 in Enide 0.4.10)

Connect Eclipse to GitHub issues

STS comes with EGit and GitHub support, that includes Mylyn GitHub Connector.

Mylyn-Add-Task-Repository.png

Mylyn-Add-Task-Repository-Credentials.png

You need to add at least 1 query

Mylyn-Query-Add.png

Mylyn-Result.png

See more at GitHub:teach:

REST Client

Rest-Client-View.png

This one has not been updated for a long while. Sources are still on SVN.

Shell script support

Included as option since 0.4.11

Shell-script-support.PNG

https://sourceforge.net/projects/shelled/ http://shelled.sourceforge.net/

Keys

Press alt + shift + A to *Toggle block selection (option/alt+command+A on Mac)

Check current binding in Window->Preferences->General->Keys

From Eclipse Help:

  • Use Alt+Shift+W to open Properties or other associated Views.

  • All text editors based on the Eclipse editor framework support editing functions, including moving lines up or down (Alt+Arrow Up and Alt+Arrow Down), copying lines (Ctrl+Alt+Arrow Up and Ctrl+Alt+Arrow Down), inserting a new line above or below the current line (Ctrl+Shift+Enter and Shift+Enter), and converting to lowercase or uppercase (Ctrl+Shift+Y and Ctrl+Shift+X).

Eclipse Standard

Eclipse Standard doesn't have HTML Editor included.

In order to get HTML Editor

  • for Kepler http://download.eclipse.org/releases/kepler update site, just select JSF Tools - Web Page Editor
  • for Juno http://download.eclipse.org/releases/juno update site, just select Web Page Editor

http://download.eclipse.org/webtools/downloads/ is not updated yet for Kepler.