Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Help with JavaScript array indentation
Help with JavaScript array indentation [message #630374] Fri, 01 October 2010 19:10
Jacob Weber is currently offline Jacob WeberFriend
Messages: 39
Registered: July 2009
Say I create a new JavaScript file, and enter the following:
function() {
	var test = [];

Then I click in between the two square brackets, and press return. The result will look like this:
function() {
	var test = [

Although I'm using tabs for indentation, the new line will be indented with a mix of spaces and tabs, so that it lines up with the opening bracket.

I'd prefer to have it just indent one extra tab, like this:
function() {
	var test = [

Even if I fix the indentation so it's just two tabs, when I press return again, it aligns the next line with the opening bracket.

Is there any way I can fix this? I couldn't find any formatting preferences that made a difference. Thanks,
Previous Topic:Problem to build Java source from wsdl
Next Topic:StructuredTextEditor for Java Script
Goto Forum:

Current Time: Fri Apr 28 22:03:32 GMT 2017

Powered by FUDForum. Page generated in 0.02399 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software