1.加快webstorm的运行速度html
(D:\Program Files (x86)\JetBrains\WebStorm 10\bin)下,有一个WebStorm.exe.vmoptions文件,文本编辑工具打开 node
第二行-Xms128m 调到256m
第三行-Xms512m 调到800mgit
2.移除一些没必要要的插件github
ASP CoffeeScript 等等web
First the official website is helpful npm
1.run your node program as dev mode服务器
run -> Edit Configurations -> Node Parameters
add your node-dev path to here, just like "D:\node\node_modules\node-dev\bin\node-dev"app
mac: /usr/local/lib/node_modules/node-devwebstorm
sometimes you need run your apps in harmony modeide
--harmony D:\nodejs\node_modules\node-dev\bin\node-dev
2.remove the idea directory in github
git rm -r one-of-the-directories
git commit -m "Remove duplicated directory"
git push origin master
to remenber this path should not be send.
settings -> version control -> ignored files :add the file or path you want to ignore
if your file or project with out the git ,pleace open:
VCS -> VCS operations popup -> create git repository
and selete the path of your project than you will find it ok!
3.WebStorm Watcher Jade In CMD Specification
1.设置WebStorm Watcher 找到 File-> Settings-> File Watchers 在右边的面板中点击 + 图标 来增长watcher Choose Template -> jade 填写New Watcher: Name:Jade Client Watcher(任意名字便可) File type:选择Jade Scope:点击...添加watcher的适用范围(这里咱们须要把它指定到咱们client template的目录下面,以避免编译了服务器端的jade template. Program:点击...选择咱们安装的jade的jade.cmd文件 Arguments:设置为 --client --no-debug $FilePath$ Working directory:设置为$FileDir$
Out paths to refresh:设置为$FileNameWithoutExtension$.html ----咱们的webstrom设置完了 2.设置jade编译成CDM格式 找到jade的安装目录 node-> node_modules-> jade-> lib-> jade.js 若是你的jade是安装在项目中的且你使用的是里面的jade.cmd,那么的这里的路径也要对应改过来 找到这个函数 exports.compile = function (str, options) 通常在128行 把 @return 改为{String} 把 if (options.client) return new Function('locals', fn) 注释掉 添加以下代码取代他 //return the function string in CMD specification if (options.client) { var out = [],outputString; out.push('define(function(require,exports,module){\n'); out.push(' module.exports=function(locals){\n'); out.push(' '+fn+' \n'); out.push(' }'); out.push('\n});') outputString=out.join(''); return outputString; } ----End