Help with JavaScript array indentation [message #630374] |
Fri, 01 October 2010 19:10 |
Jacob Weber Messages: 39 Registered: July 2009 |
Member |
|
|
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 = [
1,
2,
3
];
}
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,
Jacob
|
|
|
Powered by
FUDForum. Page generated in 0.02900 seconds