VS2008删除.js文件中的缩进 [英] VS2008 Removes my Indentation in .js file
问题描述
我正在使用ExtJs框架,所以必须在vs2008中编写大量的JS,然而,VS2008不断删除我的缩进和驱动我。
I'm working with ExtJs framework and so have to code a lot of JS in vs2008, however, VS2008 keeps removing my indentation and its driving me nuts.
如何删除自动缩进功能?谢谢
How do I remove the "auto-indent" feature? Thanks
推荐答案
简单的答案是:关闭格式化选项卡中的自动格式设置
从文档中提取这里
JScript具体设置可用在新的工具/选项/文本编辑器/ JScript节点下
JScript specific settings are available under the new Tools / Options / Text Editor / JScript node
这四个选项卡是:
一般& 标签
这里的选项是所有编辑器(包括JScript)的标准。
Options here are standard across all editors (including JScript)
格式化
此选项卡专为JScript设计,并包含大部分JScript特定格式功能
This tab was designed for JScript and contains the most of the JScript specific formatting features
自动格式化:此部分参考WHEN格式化,将在用户正在输入并以实时操作代码时进行格式化。基本上,正在用户正在构建代码时执行格式化。
Automatic formatting: This section refers to WHEN formatting will occur as the user is typing in and manipulating code in ‘real time’. Basically, formatting is being performed as the user is constructing the code.
- 输入格式完成行(默认为ON):一次{ENTER}被按下,行将根据选项设置格式
- 格式化完成语句; (默认为ON):一次;被按下,行将根据选项设置格式
- 格式化完成块打开}(默认为ON):一旦按下,块将根据选项集
-
- 粘贴格式(默认为ON):将代码粘贴到编辑器后,将根据选项设置
其他
此选项卡也是JScript特定的,包含验证规则以及语句完成选项
This tab is also JScript specific and contains validation rules as well as statement completion options
这篇关于VS2008删除.js文件中的缩进的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!