Github Atom For Windows

Atom

本文介绍用 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]]

highlight-registered-keyword

This package highlights registered keyword, regardless of file extension.

$ cat ~/.atom/PatternsFilePath

"highlight-registered-keyword": [
{
class: "mkdtask-done"
pattern: "/✔︎/g"
fileTypes:["md", "mkd"]
}
{
class: "mkdtask-delay"
pattern: "/✘/g"
fileTypes:["md", "mkd"]
}
{
class: "mkdtask-snooze"
pattern: "/→/g"
fileTypes:["md", "mkd"]
}
{
class: "ISBN"
pattern: "/(ISBN-13 ?((978)|(979))-\\d{1,9}-\\d{1,9}-\\d{1,9}-\\d)|(ISBN-10 ?\\d{1,9}-\\d{1,9}-\\d{1,9}-\\d)/g"
}
]

$ cat ~/.atom/styles.less

atom-text-editor .highlight {
&.highlight-registered-keyword {
.region {
background-color: hsla(180, 60%, 50%, 0.5);
}
&.mkdtask-done {
.region {
background-color: hsla(130, 60%, 50%, 0.5);
}
}
&.mkdtask-delay {
.region {
background-color: hsla(350, 60%, 50%, 0.5);
}
}
&.mkdtask-snooze {
.region {
background-color: hsla(200, 60%, 50%, 0.5);
}
}
&.ISBN {
.region {
background-color: hsla(60, 60%, 50%, 0.5);
}
}
}
}

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: