Reputation: 157
I need to format javascript/typescript code in Eclipse.
Accordingly to that comment I found it can be done using "generic editor" of Eclipse Wild Web Developer plugin either JavaScript Editor of Eclipse WTP JSDT.
I not succeed to get JavaScript Editor of Eclipse WTP JSDT, but managed to get partially what I was need with Generic Editor of WWD by configuring some formatting properties in Window->Preferences->General->Editors->Text Editors, e.g. "Insert spaces for tabs" and "Displayed tab width".
Now I need a configuration to add a space after/before round brackets and line wrapping settings, but can't find how I can do it.
Also I red it can be achieved by installing/settled some language server, but have no idea which server and how to bind it with Generic Editor.
Also would be very like to have auto-formatting action on file save.
Any help will by highly appreciated, thank you in advance!
Upvotes: 0
Views: 188