开发工具

来源:互联网 发布:软件开发员工保密协议 编辑:程序博客网 时间:2024/06/03 21:26

sublime 2注册码

Andrew WeberSingle User LicenseEA7E-855605813A03DD 5E4AD9E6 6C0EEB94 BC99798F942194A6 02396E98 E62C9979 4BB979FE91424C9D A45400BF F6747D88 2FB8807890F5CC94 1CDC92DC 8457107A F151657B1D22E383 A997F016 42397640 33F41CFCE1D0AE85 A0BBD039 0E9C8D55 E1B89D5D5CDB7036 E56DE1C0 EFCC0840 650CD3A6B98FC99C 8FAC73EE D2B95564 DF450523

sublime 2安装插件
前提安装Package Control
1.ctrl+~
2.输入

import urllib2,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation')

3.Restart Sublime Text
4.preferences/package control
ememt
快速编写HTML代码di:v#cc>div.css>ul>li*4>a:link+tab
CSS缩写
生成Lorem ipsum文本
AutoFileName 快捷输入文件名 输入/
jsformat ctrl+alt+f
FileDiffs右键标签页选择对应文件比较即可
Trailing spaces ctrl+shift+t
快捷键配置:在Preferences / Key Bindings – User
{ “keys”: [“ctrl+shift+t”], “command”: “delete_trailing_spaces” }
nodejs
下载SublimeText-Nodejs压缩包后解压到sublime text的package目录中
修改:Nodejs.sublime-settings、Nodejs.sublime-build文件

**Nodejs.sublime-settings**{  // save before running commands  "save_first": true,  // if present, use this command instead of plain "node"  // e.g. "/usr/bin/node" or "C:\bin\node.exe"  "node_command": "D:/Program Files/nodejs/node.exe",  // Same for NPM command  "npm_command": "D:/Program Files/nodejs/node_modules/npm",  // as 'NODE_PATH' environment variable for node runtime  "node_path": false,  "expert_mode": false,  "ouput_to_new_tab": false}**Nodejs.sublime-build**{  "cmd": ["D:/Program Files/nodejs/node.exe","-p","$file"],  "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",  "selector": "source.js",  "shell":true,  "encoding": "utf8",  "windows":    {"cmd": ["taskkill /F /IM node.exe & node", "$file"]},  "linux":{"cmd": ["killall node; node", "$file"]},    "osx":{"cmd": ["killall node; node $file"]}}**server.js**var http = require('http');http.createServer(function (request, response) {response.writeHead(200, {'Content-Type': 'text/plain;charset:utf-8'});response.end('你好 World \n');}).listen(3000);console.log('Server running at http://127.0.0.1:3000/');

sublime 2常用快捷键
ctrl+k,ctrl+u 转换所选为大写
ctrl+k,ctrl+l 转换所选为小写
ctrl+t 交互光标两边的字母或交换两个单词
Ctrl+Shift+P:打开命令面板
Ctrl+P:搜索项目中的文件
Ctrl+F:查找内容
Ctrl+Shift+F:查找并替换
Alt+Shift+数字:分屏显示
按Ctrl+Shift+上下键,可替换行
html+tab 生成HTML模板
shift+鼠标右键 列编辑模式

Sublime 2里运行PHP
配置方法
添加环境变量到PATH
选中:Tools -> Build System -> New Build System

{          "cmd": ["php", "$file"],     "file_regex": "php$",      "selector": "source.php" }

运行 ctrl+b

1 0
原创粉丝点击