sublime配置文件

key - Bindings-User:我的對於快捷鍵的設置。一樣會覆蓋默認的設置
Settings-User:我的對於sublime_text的定製css

{
    "spell_check": true, //啓用拼寫檢查
    "caret_style": "phase",  // 使光標閃動更加柔和
    "draw_minimap_border": true, // 右側縮略圖邊框
    "font_size": 12, // 字體大小
    "highlight_line": true, // 當前行標亮
    "save_on_focus_lost": true, // 當前行標亮
    "word_wrap": true, //自動換行
    "trim_trailing_white_space_on_save": true, //自動移除行尾多餘空格
    "ensure_newline_at_eof_on_save": true, //文件末尾自動保留一個空行
    "disable_tab_abbreviations": true, //禁用 Emmet 的 tab 鍵功能(請使用 ctrl+e)
    "translate_tabs_to_spaces": true, //把代碼 tab 對齊轉換爲空格對齊
    "tab_size": 4, //空格數
    "fade_fold_buttons": true, //顯示代碼塊的倒三角
    "bold_folder_labels": true, //側邊欄文件夾加粗
    "auto_find_in_selection": true //開啓選中範圍內搜索
}

SideBarEnhancements

Side Bar.sublime-menu設置鼠標打開瀏覽器的方式(右鍵某html,js,css等文件,找到Open With 而後點擊Edit Applications)html

[
    {"id": "side-bar-files-open-with",
        "children":
        [

            {
                "caption": "Chrome",
                "id": "side-bar-files-open-with-chrome",

                "command": "side_bar_files_open_with",
                "args": {
                            "paths": [],
                            "application": "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe",
                            //Chrome瀏覽器的路徑 Windows中,後綴爲.exe
                            "extensions":".*",
                            "args":[]
                        },
                "open_automatically" : false
            },
            {
                "caption": "Firefox",
                "id": "side-bar-files-open-with-firefox",

                "command": "side_bar_files_open_with",
                "args": {
                            "paths": [],
                            "application": "C:/Program Files (x86)/Mozilla Firefox/firefox.exe",
                            //火狐瀏覽器的路徑 Windows中,後綴爲.exe
                            "extensions":".*",
                            "args":[]
                        },
                "open_automatically" : false
            },

            {
                "caption": "IE",
                "id": "side-bar-files-open-with-ie",

                "command": "side_bar_files_open_with",
                "args": {
                            "paths": [],
                            "application": "C:/Program Files/Internet Explorer/iexplore.exe",
                            //Safari瀏覽器的路徑 Windows中,後綴爲.exe
                            "extensions":".*",
                            "args":[]
                        },
                "open_automatically" : false
            },

            {
                "caption": "Safari",
                "id": "side-bar-files-open-with-safari",

                "command": "side_bar_files_open_with",
                "args": {
                            "paths": [],
                            "application": "D:/Program Files (x86)/Safari/Safari.exe",
                            //Safari瀏覽器的路徑 Windows中,後綴爲.exe
                            "extensions":".*",
                            "args":[]
                        },
                "open_automatically" : false
            },

           
            {
                "caption": "Opera",
                "id": "side-bar-files-open-with-opera",

                "command": "side_bar_files_open_with",
                "args": {
                            "paths": [],
                            "application": "D:/Program Files/Opera/launcher.exe",
                            //Safari瀏覽器的路徑 Windows中,後綴爲.exe
                            "extensions":".*",
                            "args":[]
                        },
                "open_automatically" : false
            }


        ]
    }
]

Default (Windows).sublime-keymap 設置打開瀏覽器的快捷鍵(Key Bindings - User)node

{ "keys": ["ctrl+shift+1"], "command": "side_bar_files_open_with",
    "args": {
        "paths": [],
        "application": "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe",
        "extensions":".*" //any file with extension
    }
},
{ "keys": ["ctrl+shift+2"], "command": "side_bar_files_open_with",
    "args": {
        "paths": [],
        "application": "C:/Program Files (x86)/Mozilla Firefox/firefox.exe",
        "extensions":".*" //any file with extension
    }
},
{ "keys": ["ctrl+shift+3"], "command": "side_bar_files_open_with",
    "args": {
        "paths": [],
        "application": "C:/Program Files/Internet Explorer/iexplore.exe",
        "extensions":".*" //any file with extension
    }
},
{ "keys": ["ctrl+shift+4"], "command": "side_bar_files_open_with",
    "args": {
        "paths": [],
        "application": "D:/Program Files (x86)/Safari/Safari.exe",
        "extensions":".*" //any file with extension
    }
},
{ "keys": ["ctrl+shift+5"], "command": "side_bar_files_open_with",
    "args": {
        "paths": [],
        "application": "D:/Program Files/Opera/launcher.exe",
        "extensions":".*" //any file with extension
    }
}

HTML-CSS-JS Prettify

HTMLPrettify.sublime-settings(首先,在菜單欄裏點擊Preferences點擊Package Settings,而後進入HTML/CSS/JS Prettify菜單,找到HTML/CSS/JS Prettify菜單下的set 'node' path,用Sublime Text打開進行更改windows對應的值,就是安裝的node的路徑)linux

{
  // Simply using `node` without specifying a path sometimes doesn't work :(
  // https://github.com/victorporof/Sublime-HTMLPrettify#oh-noez-command-not-found
  // http://nodejs.org/#download
  "node_path": {
    "windows": "D:/Program Files/nodejs/node.exe",
    "linux": "/usr/bin/nodejs",
    "osx": "/usr/local/bin/node"
  },

  // Automatically format when a file is saved.
  "format_on_save": false,

  // Only format the selection if there's one available.
  "format_selection_only": true,

  // Log the settings passed to the prettifier from `.jsbeautifyrc`.
  "print_diagnostics": true
}
相關文章
相關標籤/搜索