开发者

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

开发者 https://www.devze.com 2023-03-08 09:36 出处:网络
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?

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

精彩评论

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