Skip to content

Commit

Permalink
Improve code docs for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno committed Feb 7, 2017
1 parent ad78af2 commit 057d419
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions docs/setup/mac.md
Expand Up @@ -17,13 +17,17 @@ MetaDescription: Get Visual Studio Code up and running on Mac.
3. Drag `Visual Studio Code.app` to the `Applications` folder, making it available in the `Launchpad`.
4. Add VS Code to your Dock by right-clicking on the icon and choosing `Options`, `Keep in Dock`.

>**Tip:** If you want to run VS Code from the terminal by simply typing 'code', VS Code has a command, **Shell Command: Install 'code' command in PATH**, to add 'code' to your `$PATH` variable list.
>
>After installation, launch VS Code. Now open the **Command Palette** (`kb(workbench.action.showCommands)`) and type `shell command` to find the **Shell Command: Install 'code' command in PATH** command.
>
>![Mac shell commands](images/mac/shell-command.png)
>
>After executing the command, restart the terminal for the new `$PATH` value to take effect. You'll be able to simply type 'code .' in any folder to start editing files in that folder.
### Command Line

You can also run VS Code from the terminal by simply typing `code`.

To set it up, launch VS Code. Then open the **Command Palette** (`kb(workbench.action.showCommands)`) and type `shell command` to find the **Shell Command: Install 'code' command in PATH** command.

![Mac shell commands](images/mac/shell-command.png)

Finally, restart the terminal for the new `$PATH` value to take effect. You'll be able to simply type `code .` in any folder to start editing files in that folder.

> **Note:** If you still have the old `code` alias in your `.bash_profile` (or equivalent) from an early VS Code version, remove it and replace it by executing the **Shell Command: Install 'code' command in PATH** command.
## Updates

Expand Down

0 comments on commit 057d419

Please sign in to comment.