Sublime Text 2 默认自动换行

2014-04-15 10:58

当一行代码太长时,Sublime Text 2默认并不会自动开启换行功能,
你必须从 View->Word Wrap 手动开启,虽然简单但每次这样也麻烦。

默认开启自动换行功能,设置方法:
打开 Preferences -> Setting - User 添加如下内容:
{ "word_wrap" : true }

下面是我使用的配置:

{
    "color_scheme": "Packages/Color Scheme - Default/Blackboard.tmTheme",
    "draw_white_space": "all",
    "font_face": "YaHei Consolas Hybrid",
    "font_size": 12.0,
    "ignored_packages":
    [
        "Vintage",
        "GBK Encoding Support",
        "Pretty JSON",
        "Alignment"
    ],
    "update_check": false,
    "word_wrap": "true"
}

原文链接: http://blog.jtwo.me/sublime-text-2-auto-word-wrap