Sublimetext3 粘贴时防止升华3将制表符转换为空格
我在OSX上使用Sublime 3已经有一段时间了,自动缩进通常是有效的。我现在正在处理XML文件,这些文件包含带有制表符分隔值的CDATA元素。当我将任何内容粘贴到这些CDATA元素中时,Sublime始终将选项卡转换为空格。我怎样才能防止这种情况 我正在使用默认设置:Sublimetext3 粘贴时防止升华3将制表符转换为空格,sublimetext3,Sublimetext3,我在OSX上使用Sublime 3已经有一段时间了,自动缩进通常是有效的。我现在正在处理XML文件,这些文件包含带有制表符分隔值的CDATA元素。当我将任何内容粘贴到这些CDATA元素中时,Sublime始终将选项卡转换为空格。我怎样才能防止这种情况 我正在使用默认设置: // The number of spaces a tab is considered equal to "tab_size": 4, // Set to true to insert spaces when tab is
// The number of spaces a tab is considered equal to
"tab_size": 4,
// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": false,
// If translate_tabs_to_spaces is true, use_tab_stops will make tab and
// backspace insert/delete up to the next tabstop
"use_tab_stops": true,
// Set to false to disable detection of tabs vs. spaces on load
"detect_indentation": true,
// Calculates indentation automatically when pressing enter
"auto_indent": true,
// Makes auto indent a little smarter, e.g., by indenting the next line
// after an if statement in C. Requires auto_indent to be enabled.
"smart_indent": true,
// Adds whitespace up to the first open bracket when indenting. Requires
// auto_indent to be enabled.
"indent_to_bracket": false,
// Trims white space added by auto_indent when moving the caret off the
// line.
"trim_automatic_white_space": true,
谢谢@r-stein!这个插件确实解决了这个问题。我喜欢插件创建者的评论。