gpt4 book ai didi

sublimetext2 - 修复 Sublime Text 2 行尾?

转载 作者:行者123 更新时间:2023-12-01 22:58:33 27 4
gpt4 key购买 nike

这是我的 Settings - User配置:

{
"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选项说:
Comment to default_line_ending option

当我创建一个新文件时,我检查这里结束的行:

Check line ending

如您所见,它仍然是 Windows ...
有什么想法吗?

最佳答案

评论指出

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

关于sublimetext2 - 修复 Sublime Text 2 行尾?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11899843/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com