首页 > Web开发 > 详细

sublime text2 与 jshint

时间:2014-04-05 11:40:57      阅读:635      评论:0      收藏:0      [点我收藏+]

mac 10.7.4

因为是javascript的初学者,其余时间常用的是c++和python,故经常把其他语言的语法带到javascript里面,所以决定安装jshint,帮我检测

首先通过npm 安装 jshint:  > npm install jshint -g

再在 sumlime text2 中 打开包管理器, 安装 jshint

在 Tools->Build System 中选择 Jshint

当按下 Command + B 的时候,下面就会提示Jshint检测的结果

如果再安装一个 SublimeOnSaveBuild 插件,就更好

 

其中有个问题:安装完 SublimeOnSaveBuild 点击保存的时候,出现如下提示

Git binary could not be found in PATH

Consider using the git_command setting for the Git plugin

PATH is: /usr/bin:/bin:/usr/sbin:/sbin

看来是git 没有设置 git_command, 不知道他们有什么关联

选择 Preferences->Package settings->Git->Settings-User

将 git_command 设置为 本机上 git 的安装路径, 如我的是 “/usr/bin/git”

sublime text2 与 jshint,布布扣,bubuko.com

sublime text2 与 jshint

原文:http://www.cnblogs.com/shadow21/p/3646963.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!