Atom之atom-beautify插件安装

按照网上指点,在终端输入四行命令:
1.cd ~/.atom/packages2.git clone https://github.com/Glavin001/atom-beautify.git3.cd atom-beautify4.apm install
但是执行4时出现 command not found
解决方案:atom软件安装完毕后没有安装shell command
Atom之atom-beautify插件安装


完事后,重新执行4.apm install,出现Installing modules ×以及一大推红色错误显示,我大概看了下是npm没有安装或者版本过低。
解决方法:在Node网站下载最新版
重新执行 apm install ,显示Installing modules ✓ 安装成功。
但是怎么使用呀……
打开Atom 发现红色对话框,内容为:
Failed to activate the atom-beautify package
Cannot find module 'event-kit'
且atom-beatify的快捷键 无法使用,package中也没有setting选项
Atom之atom-beautify插件安装
网上推荐的方法是删除掉beautify包,退出atom,重新安装,把4改成apm install atom-beautify
输入4.apm install atom-beautify后显示
Installing atom-beautify to /Users/dwj/.atom/packages ✓
重新打开atom,红色对话框没有了,beautify有setting了
Atom之atom-beautify插件安装
这是代表可以正常使用了吗?是的,可以了。快捷键 alt+ctr+b
还有更快捷的方法,打开v*n的全局变量,直接在settings的install中找到package下载……