How can I change tab to spaces in Nodeclipse .njs file formatter

382 Views Asked by At

It's easy to set up Code Formatter Preferences for JS file editor but what about Nodeclipse Node.js file Editor?

1

There are 1 best solutions below

0
On BEST ANSWER

As of Nodeclipse 0.9 default Editor for .njs files is TextEditor-based. It has no advanced features, except for those in Window -> Preferences -> Editors -> Text Editors.

Right-click .njs file and select Open with -> Nodeclipse JSDT-based Editor. Then you have all those features found in Preferences under JavaScript (including formatting).

Nodeclipse JSDT-based Editor will be back default for .njs files in Nodeclipse 0.10