开发者

Visual Studio 2008 javascript sourcecode shift-indents when enter is pressed

Why is the javascriptrows in the current block jumping one tab left when I press enter and then back right when I write a semicolon?

It's very annoying. What's the p开发者_如何学编程urpose of it?

The same thing happens on paste operations.


I just had the same issue today and found that you can deactivate this in: Tools -> Options -> Text Editor -> JScript -> Formatting

I un-ticked "Format completed line on Enter" and "Format on paste" and since then it's working ok for me. Only downside is that it won't automatically indent a block of code you're pasting within brackets but it looks like that's the price you'll have to pay!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜