今天須要在win8上裝個sublime,參考osx上的sublime從頭配置了一下,把過程記錄了下來。php
首先要 python, php, nodejs, git,爲了不沒必要要的麻煩,安裝目錄必定不要帶空格,不用中文目錄,並添加到系統PATH變量。css
https://packagecontrol.io/installationnode
打開用戶配置輸入以下內容:python
{ "auto_complete": true, "color_scheme": "Packages/Color Scheme - Default/Blackboard.tmTheme", "file_exclude_patterns": [ ".tags", ".tags_sorted_by_file", ".gitattributes", ".gitignore", "*.pyc", "*.pyo", "*.exe", "*.dll", "*.obj", "*.o", "*.a", "*.lib", "*.so", "*.dylib", "*.ncb", "*.sdf", "*.suo", "*.pdb", "*.idb", ".DS_Store", "*.class", "*.psd", "*.db" ], "folder_exclude_patterns": [ ".svn", ".git", ".hg", "CVS" ], "font_face": "Courier New", "font_size": 11, "ignored_packages": [ ], "rulers": [ 80 ], "scroll_past_end": true, "show_full_path": true, "tab_size": 4, "translate_tabs_to_spaces": true, "trim_trailing_white_space_on_save": false, "word_wrap": false, "wrap_width": 120 }
打開快捷鍵配置,輸入以下內容nginx
[ // Convert to expanded format { "keys": ["ctrl+alt+["], "command": "css_format", "args": { "action": "expand" } }, // Convert to compact format { "keys": ["ctrl+alt+]"], "command": "css_format", "args": { "action": "compact" } }, // Compress { "keys": ["ctrl+alt+\\"], "command": "css_format", "args": { "action": "compress" } } // { // "keys": ["j", "j"], "command": "exit_insert_mode", // "context": // [ // { "key": "setting.command_mode", "operand": false }, // { "key": "setting.is_widget", "operand": false } // ] // } ]
支持php內容以下git
{ "cmd": ["php", "$file"] }
保存到C:\Users\zhaoyi\AppData\Roaming\Sublime Text 3\Packages\User\php.sublime-buildjson