本文介绍用 Chocolatey 在 Windows上安装 Atom编辑器.
Atom是由GitHub开发的自由及开放源代码的文字与代码编辑器,支持macOS、Windows和Linux操作系统,支持Node.js所写的插件,并内置由Github提供的Git版本控制系统。多数的延伸包皆为开放源代码授权,并由社群建置与维护。
Chocolatey for Windows
简单的说, Chocolatey相当于Windows上的yum和apt-get, Chocolatey这套包管理系统目前已经包含了近500 多款常用软件.
安装Chocolatey:
以管理员身份打开 PowerShell输入:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) |
Chocolatey使用方法
- 列出已安装的包:
choco list
- 安装软件包:
choco install 软件包名
- 升级软件包:
choco upgrade 软件包名
- 卸载软件包:
choco uninstall 软件包名
安装Atom
打开cmd命令行或者PowerShell, choco install atom
扩展
@link:: [[../../1.Personal/02.信息备忘/AppSolution]]
- context-menu-manager: 管理Atom的右键,删除无用的item & 也可以查看某个item是哪个插件加上去的
- ✔︎highlight-selected
- ✔︎document-outline
- ✔︎autocomplete-paths
- ✔︎autocomplete-python
- ✔︎vim-mode-plus
- ✔︎highlight-registered-keyword : 自定义高亮 Keyword
- ✔︎file-icons: 图标
- ✘symbol-gen: 快捷键
Ctrl-Cmd-G
, 生成项目的符号到.tag文件, 可以使用Cmd+Shift+R
搜索项目中的符号(类似VSCOde的Cmd+P
) - ✘cursor-history: 快捷键
C-O
,C-I
highlight-registered-keyword
This package highlights registered keyword, regardless of file extension.
$ cat ~/.atom/PatternsFilePath
"highlight-registered-keyword": [ |
$ cat ~/.atom/styles.less
atom-text-editor .highlight { |
Sunset
Sunsetting Atom | The GitHub Blog
On June 8, 2022, we announced that we will sunset Atom and archive all projects under the organization on December 15, 2022.
参考
其他有用的packages: