Skip to main content

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:Easily viewing schema for a given referenced schema
Next Topic:Error starting HTTP Preview Server
Goto Forum:

Current Time: Thu Oct 22 18:58:40 GMT 2020

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

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

Back to the top