본문 바로가기

TIP

VS Code 맥 CLI에서 사용가능하게 만들기

Running VS Code on Mac


Installation

  1. Download Visual Studio Code for Mac.
  2. Double-click on the downloaded archive to expand the contents.
  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.


Command Line


You can also run VS Code from the terminal by typing 'code' after adding it to the path:


  • Launch VS Code.
  • Open the Command Palette (⇧⌘P) and type 'shell command' to find the Shell Command: Install 'code' command in PATH command.
  • Restart the terminal for the new $PATH value to take effect. You'll be able to 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.


[출처 : Running Visual Studio Code on Mac]