在粘贴时阻止Sublime 3将制表符转换为空格

时间:2016-11-17 00:15:27

标签: sublimetext3

我一直在OSX上使用Sublime 3一段时间,自动缩进通常有效。我现在正在处理具有带制表符分隔值的CDATA元素的XML文件。当我将任何内容粘贴到这些CDATA元素中时,Sublime始终将制表符转换为空格。我该如何防止这种情况?

我使用的是默认设置:

// 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,

0 个答案:

没有答案