前端开发工具学习atomPython专题

[请拥抱其它IDE]Atom编辑器,插件安装

2016-02-04  本文已影响23690人  laznrbfe

查看已安装的Atom插件(前提:已经安装Atom)

Built-in Atom packages (89)
...此处省略...
/Users/laznrbfe/.atom/packages (0)
└── (empty)
Built-in Atom packages (89)
...此处省略...
/Users/laznrbfe/.atom/packages (4)
├── atom-react-native-autocomplete@0.0.3
├── atom-react-native-css@0.0.4
├── language-javascript-jsx@0.3.7
└── react@0.14.1

Atom插件安装(个人推荐方法一)

vim搜索列表页面.png
-->点击对应插件,查看详情。例如:vim-surround.vim-surround详情页. vim-surround详情页.png
-->点击插件详情页面中的Repo按钮,跳转至插件的代码托管地址(仓库地址).复制代码托管地址(非该页面url地址),例如:https://github.com/gepoch/vim-surround.git 代码托管页面.png

-->终端输入git clone [代码托管地址],例如:git clone https://github.com/gepoch/vim-surround.git.
如果clone成功,终端输出如下:

Cloning into 'vim-surround'...
remote: Counting objects: 431, done.
remote: Total 431 (delta 0), reused 0 (delta 0), pack-reused 431
Receiving objects: 100% (431/431), 54.27 KiB | 28.00 KiB/s, done.
Resolving deltas: 100% (226/226), done.
Checking connectivity... done.

如果代码托管地址错误,终端输出如下:

Cloning into 'vim-surround'...
fatal: repository 'https://atom.io/packages/vim-surround/' not found

-->在终端中,有2种方式启动插件,个人推荐使用第1个方法,比第2个方法快。

  1. 把当前目录切换到所下载的插件的目录里面,并安装插件。例如(vim-surround为你需要安装的插件):
cd vim-surround
apm install

安装插件成功,终端输出如下:

Installing modules ✓
  1. ~/.atom/packages目录下直接安装,终端输入(vim-surround为你需要安装的插件):
apm install vim-surround

安装中,终端输出:

Installing vim-surround to /Users/laznrbfe/.atom/packages

安装插件成功,终端输出:

Installing vim-surround to /Users/laznrbfe/.atom/packages ✓
上一篇 下一篇

猜你喜欢

热点阅读