Installing Visual Studio Code and ASP.NET Core

First, we will install Visual Studio Code on Mac OS X.

Installing Visual Studio Code
To install Visual Studio Code, you need to perform the following steps:
1. Start Safari or Chrome, go to https://code.visualstudio.com/Docs/
editor/setup, and then click on Download Visual Studio Code for
Mac OS X.
2. After downloading the ZIP file, double-click on it to extract the Visual
Studio Code.app file. Drag the file to your Applications folder:

When you first run Visual Studio Code, you will see that it is a very
simple editor:

If you want to add Visual Studio Code to your dock for easy access, then right-click
on its icon and go to Options | Keep in Dock

Managing development from the terminal
You will use the command line (the Terminal app) a lot during development on
the Mac.
Start Mac OS X's Terminal app. Get a list of all files in your current directory by
entering the following command:
ls -a
The Terminal output should look something like this:

If you do not already have a file named .bash_profile, then enter the
following command:
touch .bash_profile
Enter the following command to edit the file with the nano text editor:
nano .bash_profile

In the editor, add the following statements:
code () {
if [[ $# = 0 ]]
then
open -a "Visual Studio Code"
else
[[ $1 = /* ]] && F="$1" || F="$PWD/${1#./}"
open -a "Visual Studio Code" --args "$F"
fi
}
Press Ctrl + O to save changes, press Enter to accept the filename, and then press
Ctrl + X to exit and return to the prompt.

Restart the Terminal app or enter source .bash_profile to force it to
be reprocessed.
From now on, you will be able to change to a directory containing any project
and enter code . to open Visual Studio Code and start editing that project.

Comentarios

Entradas populares