Page 1 of 1

JavaScript code formatter problem

Posted: Sun Aug 14, 2011 6:33 pm
by tonyx
I have a very simple piece of javaScript code.

Code: Select all

$(document).ready(function() {
	var a = $("p");

});
When I press Ctrl+Shift+F to format the code, I end up getting

Code: Select all

$(document).ready(function() {
			var a = $("p");

		});

FYI my Spket is installed as an Eclipse 3.7 plugin.

When I try the above code in native Eclipse JavaScript editor it works correctly.