Visual Studio 2008 javascript源代码按下回车键时移位缩进
为什么当前块中的 javascriptrows 在我按 Enter 时向左跳一个选项卡,然后在我写分号时向右跳回来?
这很烦人。其目的是什么?
粘贴操作也会发生同样的情况。
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 purpose of it?
The same thing happens on paste operations.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我今天遇到了同样的问题,发现您可以在以下位置停用此功能:
工具->选项->文本编辑器 -> JScript->格式化
我未勾选“在输入时格式化已完成的行”和“在粘贴时格式化”,从那时起它对我来说工作正常。唯一的缺点是它不会自动缩进您粘贴在括号内的代码块,但看起来这就是您必须付出的代价!
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!