Quantcast
Channel: How to open Visual Studio Code from the command line on OSX? - Stack Overflow
Browsing latest articles
Browse All 34 View Live

Image may be NSFW.
Clik here to view.

Answer by marc-medley for How to open Visual Studio Code from the command...

Currently, for macOS, the build-in Command Pallete ⌘+⇧+P routine Shell Command: Install 'code' command in PATH command will create a symbolic link from /usr/local/bin/code to the Visual Studio Code.app...

View Article



Answer by Raj for How to open Visual Studio Code from the command line on OSX?

Steps to run code . command in mac to start the VSCode app -Open VSCodeOpen command pallet(Cmd+Shift+P)Enter Shell Command: Install 'code' command in PATH and selectYou will get the notification saying...

View Article

Answer by Joehagan for How to open Visual Studio Code from the command line...

Just update your python to python3.9 i did that and it worked for me.

View Article

Answer by user454322 for How to open Visual Studio Code from the command line...

I added this to my ~/.profilealias vscode='/Applications/Visual\ Studio\ Code.app/Contents/MacOS/Electron'then. ~/.profileafterwards I can just do vscodefrom the terminal

View Article

Answer by Krismu for How to open Visual Studio Code from the command line on...

VSCode now supports it out of the box with version 1.58. Just type:$ cd path/to/your/directory$ code .

View Article


Answer by Mohamed El hadjaoui for How to open Visual Studio Code from the...

$> open -a "Visual Studio Code" [file-name]

View Article

Answer by Rafael Rozon for How to open Visual Studio Code from the command...

In my case I had to use an alias:alias code="/<PATH TO VSCODE>/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code"You can add this alias in your ~/.bash_profile.

View Article

Answer by Blessing for How to open Visual Studio Code from the command line...

If you're using visual code insiders and you want to open a file or folder in Visual Studio Code insiders from your terminal or any other command line tool then you can refer to the commands below...

View Article


Answer by pankajmalviya for How to open Visual Studio Code from the command...

For Windows you can use Command:start Code filename.extensionThe above line works for me.

View Article


Image may be NSFW.
Clik here to view.

Answer by Imran Zahoor for How to open Visual Studio Code from the command...

For me on Macbook Book Pro 2019 MacOS version 10.15.6, shortcut to open command palette in VSCode was Shift+Command+P.On opening it one has to just write install code and press enter.After that just...

View Article

Answer by Vương Hữu Thiện for How to open Visual Studio Code from the command...

If you are using VS Code Insiders:code-insiders .If you are using VS Code:code .

View Article

Answer by edikgat for How to open Visual Studio Code from the command line on...

If you install VS CODE using snap. You will need to add /snap/bin in your PATH environment variable.so - open your .bashrc or .zshrcand add /snap/bin in your PATH environment variablereload...

View Article

Answer by Kendra for How to open Visual Studio Code from the command line on...

This is what worked for me on Mac OS Catalina -- found here (thanks, Josiah!) If you're on Mac OS Catalina, you need to edit your .zprofile instead of .bash_profile.Edit your ~/.zprofile file: vim...

View Article


Answer by anand bharti for How to open Visual Studio Code from the command...

Try this oneOpen Visual Studio Code and press Command + Shift + P then type Shell in command palette now you are able to find this option like Shell Command : Install code in PATH from suggested list...

View Article

Answer by Antonio Henrique for How to open Visual Studio Code from the...

link your currentily folders to vscode.Windows Registry Editor Version 5.00; Directory\Background\shell => on empty...

View Article


Image may be NSFW.
Clik here to view.

Answer by Forhad for How to open Visual Studio Code from the command line on...

If you install Your vs code in Download folder you need to move the VS code to Application folder then open the vs code ,then press shift+command+p after you will see the below image. Then you need to...

View Article

Answer by Thiago for How to open Visual Studio Code from the command line on...

its very simple:Launching from the Command LineYou 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...

View Article


Image may be NSFW.
Clik here to view.

Answer by Sabunkar Tejas Sahailesh for How to open Visual Studio Code from...

Note: Only for Windows Users.As many folks already suggested ways to open code from command prompt using code . command. This will only open Visual Studio Code Stable build. But If you have downloaded...

View Article

Answer by DMuttz for How to open Visual Studio Code from the command line on...

After opening VSC and pressing (Command + Up + P) I tried typing in "shell command" and nothing came up. In order to get "Shell Command: Install 'code' command in PATH command" to come up, you must do...

View Article

Answer by Daniel Diner for How to open Visual Studio Code from the command...

This was the tutorial I was looking for in this thread. It shows the way to open files in Visual Studio Code by writing code . 1.- Open the fileBash open ~/.bash_profile Terminal OS open ~/.zshrc2.-...

View Article

Answer by xverges for How to open Visual Studio Code from the command line on...

You can use the vscode: protocol that Visual Studio Code defines:open vscode://file/full/path/to/project/or/fileYou can also use/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/codeif...

View Article


Answer by Luke Angel for How to open Visual Studio Code from the command line...

For windows Usersjust type in >code .More commands herehttps://code.visualstudio.com/docs/editor/command-line

View Article


Image may be NSFW.
Clik here to view.

Answer by Ahmad Awais for How to open Visual Studio Code from the command...

Download, install and open Visual Studio Code.Open the Command Palette (⌘+⇧+P on Mac) OR View❯Command PaletteType shell command to find Shell Command: Install 'code' command in PATH commandInstall...

View Article

Answer by David A. Gray for How to open Visual Studio Code from the command...

The instruction given at VS Code Command Line for launching a path are incorrect; the leading colon shown in the example doesn't work. However, launching with a backslash terminated directory name...

View Article

Answer by mmilutinovic1313 for How to open Visual Studio Code from the...

I ran: open -a "Visual Studio Code" [folder-name] to open a folder with my Visual Studio Code application. Folder name is optional if you just want to open the application. Not sure if this is exactly...

View Article


Answer by Sudharshan for How to open Visual Studio Code from the command line...

If you want to open a file or folder on Visual Studio Code from your terminal, iTerm, etc below are the commands which come as default when you install Visual Studio CodeTo open Visual Studio Code from...

View Article

Answer by pungggi for How to open Visual Studio Code from the command line on...

I had this issue because of VS Code Insiders.The path variable was there but I needed to rename the code-insiders.cmd inside to code.cmd .Maybe this is useful to someone.

View Article

Answer by user1116928 for How to open Visual Studio Code from the command...

Added this to /usr/local/bin/code, you might have to modify the path if they are different.#!/usr/bin/env bashCONTENTS="/Applications/Visual Studio...

View Article

Answer by Tracker1 for How to open Visual Studio Code from the command line...

I have a ~/bin/code shell script that matches the command @BengaminPasero wrote.#!/bin/bashVSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $*I prefix ~/bin: to my $PATH which allows me to...

View Article



Answer by Ilan for How to open Visual Studio Code from the command line on OSX?

I discovered a neat workaround for mingw32 (i.e. for those of you using the version of bash which is installed by git-scm.com on windows):code () { VSCODE_CWD="$PWD" cmd //c code $* ;}

View Article

Answer by Benjamin Pasero for How to open Visual Studio Code from the command...

We since updated the script to the following syntax to support multiple files and folders as arguments and to fix an issue with not detecting the current working directory properly:code () {...

View Article

Answer by peterdn for How to open Visual Studio Code from the command line on...

On OSX Mavericks I created a bash script named vscode (adapted from the .bashrc in VSCode Setup) in ~/bin:#!/bin/bashif [[ $# = 0 ]]then open -a "Visual Studio Code"else [[ $1 = /* ]] && F="$1"...

View Article

Answer by Shaan for How to open Visual Studio Code from the command line on OSX?

From the Visual Studio Code Setup page: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...

View Article


How to open Visual Studio Code from the command line on OSX?

The docs mention an executable called code, but I'm not sure where I can find that so I can put it on my path. The zip I downloaded from the VSCode site did not include any such executable. (I am able...

View Article
Browsing latest articles
Browse All 34 View Live




Latest Images