Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

like image 759
P i Avatar asked Mar 02 '14 12:03

P i


People also ask

Do you have to install C?

To start learning C programming, you only have to install the C compiler in your system. Nowadays, C and C++ both compilers come as a single integrated package, which serves the purpose of both C and C++ program development.

Can we install C language in Windows 10?

If you want to run C or C++ programs in your Windows operating system, then you need to have the right compilers. The MinGW compiler is a well known and widely used software for installing GCC and G++ compilers for the C and C++ programming languages.


5 Answers

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.

like image 163
P i Avatar answered Sep 27 '22 09:09

P i


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

like image 44
Bruce Mitchener Avatar answered Sep 27 '22 09:09

Bruce Mitchener


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

like image 20
Steve Ruckdashel Avatar answered Sep 27 '22 09:09

Steve Ruckdashel


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

like image 32
Brendan Forster Avatar answered Sep 25 '22 09:09

Brendan Forster


  1. File > Settings > Install
    (Or on MacOS: Atom > Preferences > Install)
  2. Search for "language-csharp"
like image 38
Josh Avatar answered Sep 26 '22 09:09

Josh