【问题标题】:Sublime Text Preferences崇高的文本首选项
【发布时间】:2013-10-24 02:10:30
【问题描述】:

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

我收到此错误:尝试解析设置时出错: ~/Library/Application Support/Sublime Text 2/Packages/User/Preferences.sublime-settings:2:5 中的预期值

我现在的偏好如下所示:

{
# 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"
]
}

知道这个错误是什么意思以及如何解决它吗?

谢谢!

【问题讨论】:

    标签: sublimetext2 sublimetext


    【解决方案1】:

    Sublime Text 在配置文件中使用 JSON。它支持// 样式的cmets。所以请将#改为//

    Support comments in JSON config files

    【讨论】:

      猜你喜欢
      • 2014-10-21
      • 1970-01-01
      • 2014-01-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多