最炫酷的代码编辑器(IDE)--Atom
最帅,特效炫酷的 IDE,开源!
先上几张图,感兴趣 你再往下看
介绍
Atom (原子) 是 github专门为程序员推出的一个跨平台文本编辑器.其实是一款(IDE)。
具有简洁和直观的图形用户界面,并有很多有趣的特点:支持CSS,HTML,JavaScript等网页编程语言。它支持宏,自动完成分屏功能,集成了文件管理器。
2015年1月8日宣布开源。 https://github.com/atom/atom
活跃至今。
由于网上介绍大多较陈旧,所以评价不是太高,现在已经变得越来越优秀。
举例介绍其功能
强大的代码补全功能:省
比如,如果我们输入ife
然后按 tab,我会得到以下代码:if (true) { } else { }
或者简单的输入一个小写的
f
然后按tab,它将给我创建一个匿名函数的基本框架:function () { }
还有等等..
支持用命令控制:(用过sublime的一定知道)
linux、sublime 的老用户一定不喜欢在界面上拿着鼠标点来点去
可以定制自己喜欢的功能/主题/插件
举几个 诱人的 功能:
- 页内显示结果:Run code and get results inline using Jupyter kernels like IPython, IJulia, and iTorch
- 自动辅助注释: 注释时可以选中代码块,自动抓取其中的 param return
- 高亮当前行 : 快速寻找光标
- 高亮选中变量 : 选中一个变量后,当前页所有的同名变量全部高亮、
- 代码中直接颜色拾取:前端必备
- and more...
更多优秀的 插件这里有详细的介绍:
安装指导
一、安装atom (源引于官网教程Install Atom)
“To install Atom on Linux, you can download a Debian package or RPM package either from themain Atom website or from theAtom project releases page. These packages do not currently have auto-update features, so when you would like to upgrade to a new release of Atom, you will have to repeat this installation process.”
Debian and Ubuntu (deb/apt)
To install Atom on Debian, Ubuntu, or related systems:
# Install Atom sudo dpkg -i atom-amd64.deb # Install Atom's dependencies if they are missing sudo apt-get -f install
RedHat and CentOS (yum)
To install Atom on CentOS, Oracle Linux, RedHat Enterprise Linux, Scientific Linux or related systems that use the yum package manager:
sudo yum install -y atom.x86_64.rpm
Fedora (dnf)
To install the latest release of Atom on Fedora or other systems that use the DNF package manager:
sudo dnf install -y atom.x86_64.rpm
SUSE (zypp)
To install the latest release of Atom on openSUSE or other systems that use the Zypp package manager:
sudo zypper in -y atom.x86_64.rpm
# atom // 试试你的IDE吧
二、安装插件
例如我们 安装这款最炫酷的
方法一:()
[ Packages ] => [ Setting View ] => [ Install Packages ]
例如安装activate-power-mode包如下。
方法二:sudo a![]()
pm
install
<package name>
# apm install activate-power-mode Installing activate-power-mode to /root/.atom/packages ✓
(如果报错请看最后*1)![]()
三、使用这款插件
重配置 Atom:* 插件仅仅是插件,用来辅助人们提高工作舒适度和工作效率的存在,不要迷失在花俏的插件海洋里。
方法 一 : Ctrl + Shift + F5
方法 二 : Ctrl + Alt + P ,然后再输入 window:Reload 回车生效
开启插件:
Ctrl + Alt + O试试你的新插件吧!combo combo++
[ *1 ]
报错 解决方法:(报错)
Step1:去github下载zip或者clone源包。# git clone https://github.com/JoelBesada/activate-power-mode.git
Step2 : 移动 activate-power-mode/ 到 $home目录中 ./atom/packages/
参考资料:
http://www.ituring.com.cn/article/72264后生不才,恭听指正。
https://code.tutsplus.com/tutorials/check-out-atom-githubs-new-development-editor--net-37030