首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >崇高的文本偏好

崇高的文本偏好
EN

Stack Overflow用户
提问于 2013-10-24 02:10:30
回答 1查看 1K关注 0票数 0

http://dbader.org/blog/setting-up-sublime-text-for-python-development

我得到了这个错误:试图解析设置的错误:~/Library/Application Support/崇高文本2/Packages/User/Preferences.sublime-settings:2:5中的期望值

我现在的首选项如下:

代码语言:javascript
复制
{
# Colors
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme",
"theme": "Soda Dark.sublime-theme",

# Font
"font_face": "Arial",
"font_size": 18.0,
"font_options": ["subpixel_antialias", "no_bold"],
"line_padding_bottom": 0,
"line_padding_top": 0,

# Cursor style - no blinking and slightly wider than default
#"caret_style": "solid",
#"wide_caret": "true",

# Editor view look-and-feel
"draw_white_space": "all",
"fold_buttons": "false",
"highlight_line": "false",
"auto_complete": "true",
"show_minimap": "false",

# Editor behavior
"scroll_past_end": "false",
"highlight_modified_tabs": "true",
"find_selected_text": "true",

# Word wrapping - follow PEP 8 recommendations
"rulers": [ 72, 79 ],
"word_wrap": "true",
"wrap_width": 80,

# Whitespace - no tabs, trimming, end files with \n
"tab_size": 4,
"translate_tabs_to_spaces": "true",
"trim_trailing_white_space_on_save": "true",
"ensure_newline_at_eof_on_save": "true",

# Sidebar - exclude distracting files and folders
"file_exclude_patterns":
[
    ".DS_Store",
    "*.pid",
    "*.pyc"
],
"folder_exclude_patterns":
[
    ".git",
    "__pycache__",
    "env",
    "env3"
]
}

知道这个错误意味着什么吗?如何修复它?

谢谢!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-10-24 02:36:22

崇高文本在配置文件中使用JSON。它还支持//风格的注释。所以请将#改为//

Support comments in JSON config files

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19555669

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档