Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add step to set up code . on command line #46

Open
ProchaLu opened this issue Sep 4, 2023 · 0 comments
Open

Add step to set up code . on command line #46

ProchaLu opened this issue Sep 4, 2023 · 0 comments

Comments

@ProchaLu
Copy link
Member

ProchaLu commented Sep 4, 2023

Some students have encountered difficulties when using the code . command to open Visual Studio Code via the command line. When attempting to execute the command, they receive the following error message:

Paulines-MacBook-Pro:next-js-portfolio-web paulineerika$ code .
-bash: code: command not found

Add a simple step to set up the Shell Command in VS Code in all System Setup guides


Steps to fix this issue:

  1. Start by opening Visual Studio Code
  2. ctrl/cmd-shift-P to open the Command Palette within Visual Studio Code
  3. In the Command Palette, type shell command to search for the Shell Command: Install 'code' command in PATH option
  4. Select the Shell Command: Install 'code' command in PATH option by clicking on it or pressing Enter
@karlhorky karlhorky changed the title code . command not working on command line Add step to set up code . on command line Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant