| Format javascript source code before save [message #226221] |
Thu, 08 January 2009 14:41  |
zubin Missing name Messages: 32 Registered: July 2009 |
Member |
|
|
How can I format javascript code automatic when I saving the file.
I go to preferences page ->JavaScript->Editor->save Actions, and checked
the "perform the selected actions on save" and "format source code"
checkboxes.
Ctrl+shift+f shortcut key for code formatting works, but saving the file,
the javascript code never formatted. Is this a bug of JSDT? or did I miss
something?
I am using JSDT and eclipse 3.4
Thanks,
|
|
|
|
| Re: Format javascript source code before save [message #226237 is a reply to message #226230] |
Thu, 08 January 2009 15:16   |
|
Originally posted by: dcarver.starstandard.org
zubin wrote:
> I meant if I messed the codes out and then save them. The code won't be
> reformatted, those codes will be left the way it is. But If I do
> ctrl+shift+f to do code format, the source code will be reformatted.
>
Rubin, you need to set your save actions if you want it to format when
saving. To do this, got your preferences.
Windows->Preferences->JavaScript->Editor->Save Actions
Select the Perform selected action on Save, and then select Format.
That should get you going.
Dave
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01811 seconds