This question is locked. New answers and comments are not allowed.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve
asked on 08 Aug 2011, 06:06 PM
Whats the option to turn of the auto-indent in javascript (only)...it's making some seriously BAD choices still with jQuery causing me more keystrokes to re-re-format it
6 Answers, 1 is accepted
0
Derek
Top achievements
Rank 1
answered on 10 Aug 2011, 05:40 PM
I second that. It is indenting everything in scope of the function it relates to, instead of following logical block formatting. So you end up with ...
declaration ( param, param, function () {
code
code ( param, param, function () {
code
code
}),
});
this quickly becomes out of control and hard to read, especially when you begin nesting async statements.
It would be a lot better if we could just follow block formatting, and go with ...
declaration ( param, param, function() {
code
code ( param, param, function () {
code
code
})
});
declaration ( param, param, function () {
code
code ( param, param, function () {
code
code
}),
});
this quickly becomes out of control and hard to read, especially when you begin nesting async statements.
It would be a lot better if we could just follow block formatting, and go with ...
declaration ( param, param, function() {
code
code ( param, param, function () {
code
code
})
});
0
Hello guys,
We're familiar with the issues javascript formatter currently has, and we're planning some heavy rework and adding lots of new stuff to it for the November release. So, stay tuned and follow our internal builds for updates on the topic.
As for Steve's question, you can disable JC's javascript autoformat from the options dialog -> Code Style -> JavaScrpt -> General page. There's a bunch of settings for the javascript formatter in Visual Studio options also (Options -> Text Editor -> JScript -> Formatting), so you can check whether these will do the magic for you.
Cheers,
Kaloyan
the Telerik team
We're familiar with the issues javascript formatter currently has, and we're planning some heavy rework and adding lots of new stuff to it for the November release. So, stay tuned and follow our internal builds for updates on the topic.
As for Steve's question, you can disable JC's javascript autoformat from the options dialog -> Code Style -> JavaScrpt -> General page. There's a bunch of settings for the javascript formatter in Visual Studio options also (Options -> Text Editor -> JScript -> Formatting), so you can check whether these will do the magic for you.
Cheers,
Kaloyan
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 11 Aug 2011, 02:57 PM
Oh good! Thanks much Kaloyan
Will the Nov release also address the "unintelligent" doublequote\braces?
Like take this...
So when you add the quote to the beginning of the string this happens
(braces are the same)
They should be more aware of context
Will the Nov release also address the "unintelligent" doublequote\braces?
Like take this...
string
name = steve";
So when you add the quote to the beginning of the string this happens
string
name =
""
steve";
(braces are the same)
They should be more aware of context
0
Hello Steve,
We'll, for sure, do our best to improve that behavior for the Nov release. Added that to our product backlog. Thanks for the suggestion.
Regards,
Kaloyan
the Telerik team
We'll, for sure, do our best to improve that behavior for the Nov release. Added that to our product backlog. Thanks for the suggestion.
Regards,
Kaloyan
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
0
Derek
Top achievements
Rank 1
answered on 17 Aug 2011, 02:20 PM
Following your steps to disable the auto-formatting in 'just' Javascript did not work for me. I either have to turn Typing Assistance off system-wide, or it continues to mess up my javascript.
0
Hi Derek,
We've recently stumbled upon a deficiency with our typing assistance, that manifested in formatting the whole file, instead of a single line, on which a semicolon was typed. We've already taken care of that and the fix will be available with our next internal build some time next week, so stay tuned.
Greetings,
Kaloyan
the Telerik team
We've recently stumbled upon a deficiency with our typing assistance, that manifested in formatting the whole file, instead of a single line, on which a semicolon was typed. We've already taken care of that and the fix will be available with our next internal build some time next week, so stay tuned.
Greetings,
Kaloyan
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>