修复 Sublime Text 2 行尾? [英] Fixing Sublime Text 2 line endings?
本文介绍了修复 Sublime Text 2 行尾?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我的设置 - 用户
配置:
{
"auto_indent": true,
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
"default_line_ending": "LF",
"detect_indentation": true,
"font_size": 10.0,
"ignored_packages":
[
"Vintage"
],
"indent_to_bracket": false,
"smart_indent": true,
"tab_size": 4,
"translate_tabs_to_spaces": true,
"trim_automatic_white_space": true,
"use_tab_stops": true
}
对 default_line_ending
选项的评论说:
当我创建一个新文件时,我检查这里结束的行:
When I create a new file, I check line ending here:
如您所见,它仍然是 Windows...有什么想法吗?
As you can see it's still Windows... Any ideas?
推荐答案
评论说明
// Determines what character(s) are used to terminate each line in new files.
// Valid values are 'system' (whatever the OS uses), 'windows' (CRLF) and
// 'unix' (LF only).
您正在设置
"default_line_ending": "LF",
你应该设置
"default_line_ending": "unix",
这篇关于修复 Sublime Text 2 行尾?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文