sublime常用配置
sftp ssh上传/下载工具xdebug php代码调试工具emmet <tab>键快速补全sublimelinter 提示代码错误docblock 格式化注释package control 插件安装库bracket highlighter 用于匹配括号converttoutf8 将文件用utf8的模式打开 chineselocalization 汉化插件less less语法高亮jsx jsx语法高亮less2Css less转cssautofilename 文件路径自动提示
激活:
Michael BarnesSingle User LicenseEA7E-8213858A353C41 872A0D5C DF9B2950 AFF6F667C458EA6D 8EA3C286 98D1D650 131A97ABAA919AEC EF20E143 B361B1E7 4C8B7F04B085E65E 2F5F5360 8489D422 FB8FC1AA93F6323C FD7F7544 3F39C318 D95E6480FCCC7561 8A4A1741 68FA4223 ADCEDE07200C25BE DBBC4855 C4CFB774 C5EC138C0FEC1CEF D9DCECEC D3A5DAD1 01316C36
取消自动升级:
"update_check":false
自动换行:
"word_wrap": true
缩进4个空格:
"tab_size": 4
行结束符(unix):
"default_line_ending": "unix"
配置文件:
{"color_scheme": "Packages/Color Scheme - Default/IDLE.tmTheme","update_check":false,"word_wrap": true,"tab_size": 4,"font_size": 14,"default_line_ending": "unix"}
编译php:
a. 将php程序设置到环境变量中,以使在任意目录下都可执行php命令
b. 创建php编译系统:
c. 新建一个,默认的内容是:
{"shell_cmd": "make"}
d. 修改为:
{"cmd": ["php", "$file"],"file_regex": "php$","selector":"source.php"}
e. 保存在默认的目录下即可,注意修改文件名为 php.sublime-build
f. 重启sublime text,就可以用Ctrl+B来编译.php文件了
a. 下载node js
b. 同php一样,新建一个文件
c. 新建一个,默认的内容是:
{"shell_cmd": "make"}
d. 修改为:
{"cmd": ["node", "$file"],"selector": "source.js"}
使用sftp上传/下载文件:
a. 下载:
b. 配置:
b-1. 创建配置文件:
b-2. 配置文件内容:
{"type": "sftp","save_before_upload": true,"upload_on_save": true,"sync_down_on_open": false,"sync_skip_deletes": false,"sync_same_age": true,"confirm_downloads": false,"confirm_sync": true,"confirm_overwrite_newer": false,"host": "172.20.10.11","user": "root","password": "123456","port": "22","remote_path": "/var/www/html/","ignore_regexes": ["\\.sublime-(project|workspace)", "sftp-config(-alt\\d?)?\\.json","sftp-settings\\.json", "/venv/", "\\.svn/", "\\.hg/", "\\.git/","\\.bzr", "_darcs", "CVS", "\\.DS_Store", "Thumbs\\.db", "desktop\\.ini"],"connect_timeout": 30,}
c. 测试:
c-1. 新建文件:
c-2. 保存:
d. 测试:
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。