我正在尝试从 Notepad++ 跳转到 Sublime Text 2。但是一个问题是阻止我这样做:
在 CSS、JavaScript 或 PHP 中工作时 - 每当我输入一个括号并按 [ENTER] 时,都会添加一个额外的缩进。例如,如果我输入括号并按 Enter,下面会显示插入符号结束的位置:
{
|
我需要插入符号出现在与括号相同的水平点,如下所示:
{
|
我试过弄乱缩进设置无济于事。这是我当前的用户设置:
{
"auto_indent": true,
"auto_match_enabled": false,
"bold_folder_labels": true,
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
"detect_indentation": false,
"font_face": "Courier New",
"font_size": 10,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Vintage"
],
"indent_to_bracket": false,
"line_padding_bottom": 1,
"line_padding_top": 1,
"smart_indent": false,
"trim_automatic_white_space": false
}
更新:如果我将auto_indent设置为false,这会产生不同的问题。在这种情况下,插入符号将始终放置在行首。例如
{
|
我也尝试过使用 Packages/JavaScript 中的文件,但无济于事。
真的很感激一个解决方案,因为我真的很想开始使用这个编辑器!
谢谢。