P i
P i

Reputation: 30724

How to install C# language support in Atom

I've just started using https://atom.io/ on OSX

If I open a C# file it doesn't syntax highlight.

I've found https://github.com/atom/language-csharp

Do I just clone that and copy it into /Applications/Atom.app/Contents/Resources/app/node_modules ?

Upvotes: 30

Views: 24053

Answers (5)

Josh
Josh

Reputation: 2222

  1. File > Settings > Install
    (Or on MacOS: Atom > Preferences > Install)
  2. Search for "language-csharp"

Upvotes: 1

Brendan Forster
Brendan Forster

Reputation: 2718

This was added to the core packages in February 2015, so if you're running the latest version of Atom it should be already installed.

Here's the pull request: https://github.com/atom/atom/pull/5408

Upvotes: 3

Steve Ruckdashel
Steve Ruckdashel

Reputation: 91

Omnisharp is recommended for C# support in Atom. Here's the package installation commands from their page.

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

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

Upvotes: 9

Bruce Mitchener
Bruce Mitchener

Reputation: 181

If you've installed the command line utilities, you can also "apm install language-csharp" from the command line.

Upvotes: 15

P i
P i

Reputation: 30724

Go into preferences -> Packages and type 'CSharp'

enter image description here

I've used Lisp in the picture as I already installed CSharp so it won't show up any more.

Upvotes: 38

Related Questions