大爱sublime text3

一、官网下载

https://www.sublimetext.com/

二、检查Package Control 是否安装

Preferences->最下面Package Control是否有?

如果没有:

1、Preferences->Browse Packages

2、返回上一级目录,查找并进入 installed package

3、下载Package Control.sublime-package,并复制到installed package目录里,然后重启sublime

 

三、用Package Control安装主题

主题分两块

color Scheme 和 theme

推荐主题:

https://github.com/itsthatguy/theme-itg-flat    //内含安装说明,利用 Package Control 安装

 

四、常用配置

Preferences->Setting-User->使用下面覆盖即可。   //Setting-Default是默认配置,不能改动

{
    "color_scheme": "Packages/Theme - itg.flat/itg.dark.tmTheme",
    "itg_small_tabs": true,
    "itg_sidebar_tree_medium": true,
    "font_size": 17,
    "highlight_line": true,
    "ignored_packages":
    [
        "Vintage"
    ],
    "line_padding_bottom": 2,
    "line_padding_top": 2,
    "open_files_in_new_window": false,
    "show_encoding": true,
    "tab_size": 4,
    "theme": "itg.flat.light.orange.sublime-theme"
}

 

五、安装常用插件

ConvertToUTF8  : 安装很简单

 

SublimeLinter  + SublimeLinter-php:要安装两个插件,如果要检测c、c++、js、css之类,还需要再安装其他的。

SublimeLinter配置如下:

{
    "user": {
        "debug": false,
        "delay": 0.25,
        "error_color": "D02000",
        "gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
        "gutter_theme_excludes": [],
        "lint_mode": "save-only",//如果模式换成background,会不停的检测,同时下面的show_errors_on_save要设置为false
        "linters": {
            "php": {
                "@disable": false,
                "args": [],
                "excludes": []
            }
        },
        "mark_style": "outline",
        "no_column_highlights_line": false,
        "passive_warnings": false,
        "paths": {
            "linux": [],
            "osx": [],
            "windows": []
        },
        "php_paths": {   //这段要自己添加
            "linux": [],
            "osx": [
                "/usr/local/bin/php"   //必须双引号
            ],
            "windows": []    //windows下注意转义  "C:\\wamp\\bin\\php\\php5.5.12\\php"
        },
        "python_paths": {
            "linux": [],
            "osx": [],
            "windows": []
        },
        "rc_search_limit": 3,
        "shell_timeout": 10,
        "show_errors_on_save": true,
        "show_marks_in_minimap": true,
        "syntax_map": {
            "html (django)": "html",
            "html (rails)": "html",
            "html 5": "html",
            "javascript (babel)": "javascript",
            "magicpython": "python",
            "php": "html",
            "python django": "python",
            "pythonimproved": "python"
        },
        "warning_color": "DDB700",
        "wrap_find": true
    }
}

 

 

 

 

相关链接:

http://colorsublime.com/?q=iTg  //一个专门做sublime主题下载的网站

http://www.imooc.com/article/1356 //讲解sublime配置比较好的

 

posted @ 2016-06-14 17:54  zyliang  阅读(222)  评论(0编辑  收藏  举报