如何在Atom中安装C#语言支持

时间:2014-03-02 12:50:00

标签: programming-languages syntax-highlighting atom-editor

我刚开始在OSX上使用https://atom.io/

如果我打开一个C#文件,它没有语法高亮。

我找到了https://github.com/atom/language-csharp

我是否只是克隆它并将其复制到/Applications/Atom.app/Contents/Resources/app/node_modules?

5 个答案:

答案 0 :(得分:38)

进入偏好设置 - >包并输入'CSharp'

enter image description here

我已经在图片中使用了Lisp,因为我已经安装了CSharp,所以它不会再出现了。

答案 1 :(得分:15)

如果您已安装命令行实用程序,还可以从命令行“apm install language-csharp”。

答案 2 :(得分:9)

Omnisharp建议用于Atom中的C#支持。这是来自其页面的软件包安装命令。

apm install language-csharp
apm install autocomplete-plus
apm install omnisharp-atom

https://atom.io/packages/omnisharp-atom

答案 3 :(得分:3)

这已于2015年2月添加到核心软件包中,因此如果您运行的是最新版本的Atom,则应该已经安装了它。

以下是拉取请求:https://github.com/atom/atom/pull/5408

答案 4 :(得分:1)

  1. 文件>设置>安装
    (或者在MacOS上:Atom>首选项>安装)
  2. 搜索" language-csharp"
相关问题