“code .” command is not working


<a href="https://i.stack.imgur.com/Wy0Z8.jpg" rel="nofollow"><img alt="this is the line i get when i did shell command in VS code" class="b-lazy" data-src="https://i.stack.imgur.com/Wy0Z8.jpg" data-original="https://i.stack.imgur.com/Wy0Z8.jpg" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>

I get this error:


code . is not recognised as an external or internal command, operable program or batch file


moreover shell commands are not coming in my compiler VS code neither do setx path "%path%;C:\Program Files\Microsoft VS Code" is working in command prompt .


It looks as if you do not have the code program installed. You can open the Command Palette,

<ul><li>Mac: <kbd>Shift</kbd><kbd>Cmd</kbd><kbd>P</kbd></li> <li>Windows/Linux: <kbd>Shift</kbd><kbd>Ctrl</kbd><kbd>P</kbd></li> </ul>

And search "install command", which should return this as one of the options:

<ul><li><strong>Shell Command: Install 'code' command in PATH</strong></li> </ul>

Run that, and it should install the code command, after which you should be able to use it.


paste this into your terminal

export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"


  • Java initializing objects
  • problem with ArrayList in Java
  • How to start a Spark Shell using pyspark in Windows?
  • gluUnProject always returns zero
  • Geo Fix not working in Android SDK 2.2
  • How would I send and receive packets over a WebSocket in Javascript
  • removing the default blue color on focus
  • mysql table locked after php crashes
  • ASP.NET windows authentication should always ask for credentials
  • Changing Jupyter Notebook start up folder by modifying “start in” not working any more
  • powershell Get-Counter -ComputerName parameter on Windows 7
  • Xamarin MonoAndroid Azure mobile service InsertAsync
  • Private IP address in reserved subnet range
  • How To Customize ASP.NET Chart Databound To SqlDataSource
  • Memory error in python- how to use more memory
  • IE11 throwing “SCRIPT1014: invalid character” where all other browsers work
  • Differences in dis-assembled C code of GCC and Borland?
  • How do I configure context broker accept post requests from my remote sensor?
  • Convert Type Decimal to Hex (string) in .NET 3.5
  • The plugin 'org.apache.maven.plugins:maven-jboss-as-plugin' does not exist or no valid ver
  • Algorithm for a smudge tool?
  • script to move all files from one location to another location
  • ILMerge & Keep Assembly Name
  • Can I make an Android app that runs a web view in Chrome 39?
  • Updated Ionic CLI but shows previous version (Windows)
  • Symfony2: How to get request parameter
  • Statically linking a C++ library to a C# process using CLI or any other way
  • jqPlot EnhancedLegendRenderer plugin does not toggle series for Pie charts
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • How do I rollback to a specific git commit
  • Is there a mandatory requirement to switch app.yaml?
  • Matrix multiplication with MKL
  • C# - Getting references of reference
  • Hits per day in Google Big Query
  • -fvisibility=hidden not passed by compiler for Debug builds
  • File not found error Google Drive API
  • Are Kotlin's Float, Int etc optimised to built-in types in the JVM? [duplicate]
  • Checking variable from a different class in C#
  • Busy indicator not showing up in wpf window [duplicate]
  • Converting MP3 duration time