今天须要在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