ASP.NET Core MVC 2.0 Cookbook
上QQ阅读APP看书,第一时间看更新

How to do it...

In most of the previously mentioned text editors, a package manager is included and will be used to install the OmniSharp package:

  1. Edit code on macOS with Atom:
  1. Let's install the OmniSharp package on Atom:
  1. Next, let's create a new project:
  1. Now that OmniSharp is installed, we can use the project scaffolding for .NET projects:
  1. After choosing Web Application, the project and the associated files are generated.
  1. We can see the Startup.cs class generated:

At the bottom of the picture, we can see the OmniSharp features on Atom, with the little green OmniSharp icon on the bottom-left, and two panels: the Errors and Warnings pane and the Omnisharp output pane. The little green icon on the bottom of the page is the OmniSharp icon:

  1. Let's type some code; we will see intellisense in action:
  1. We can see what appears on the output window while typing:
  1. We can also see the errors and warnings in real time:
  1. Opening the contextual menu by right-clicking, we can see the OmniSharp menu features: