我有一个问题,导致我在sublime文本中有很多额外的击键.当我创建几个新行时,缩进是正确的.但是,如果我向上箭头返回那些新行,缩进就消失了,我回到了位置0(适用于所有文件格式).我做错了,这是预期的行为吗?我喜欢我的代码中的空格,所以这很痛苦.
重新创建:编写功能代码,例如
function Bob(){
| indent starts here
}
Run Code Online (Sandbox Code Playgroud)
都好.然后我添加了几条新线,向上箭头回到中间,我得到了这个:
function Bob(){
| indent starts here
| indent starts here
| indent starts here
}
Run Code Online (Sandbox Code Playgroud)
我想要:
function Bob(){
| indent starts here
| indent starts here
| indent starts here
}
Run Code Online (Sandbox Code Playgroud)
任何建议请 - 除了改变我的编码风格:-)谢谢.
编辑:显然这不是预期的行为.下面列出的首选项和插件,以防它们发生干扰.
用户偏好:
{
"auto_complete": true,
"auto_complete_with_fields": true,
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"detect_indentation": true,
"draw_minimap_border": true,
"fade_fold_buttons": true,
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
"tmp",
".tmp",
".bundle",
".sass-cache"
],
"highlight_modified_tabs": true, …Run Code Online (Sandbox Code Playgroud)