• Skip to main content
  • Skip to primary sidebar

Web Development Archive

  • Archive
You are here: Home / Other / VS Code CLI – Open IDE from terminal with code .

VS Code CLI – Open IDE from terminal with code .

Ez a VS Code CLI (shell command) hiánya. Alapból nincs a PATH-ban, ezért nem működik a code ..

Megoldás (gyors, hivatalos)

  1. Nyisd meg a Visual Studio Code-ot
  2. Cmd + Shift + P → Command Palette
  3. Írd be:Shell Command: Install 'code' command in PATH
  4. Enter

Ellenőrzés

Terminalban:

code .

Ha jól ment, megnyitja az aktuális mappát VS Code-ban.


Ha nem működik (ritka eset)

Manuálisan:

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

Majd reload:

source ~/.zshrc

Gyors sanity check

which code

Ha ezt adja:

/usr/local/bin/code  vagy  /Applications/Visual Studio Code.app/...

→ rendben vagy.


Ha akarod, adok egy komplett “fresh Mac dev setup” checklistet (Node, nvm, git, brew, stb.), hogy ne fuss bele ilyenekbe később.

Filed Under: Other

About Gabor Flamich

I'm a web developer and designer based in Budapest, Hungary. In recent years, I've documented hundreds of solutions I came across during development. This site is an archive for useful code snippets on WordPress, Genesis Framework and WooCommerce. If You have any questions related to WordPress development, get in touch!

Primary Sidebar

  • angular.io
© 2026 WP Flames - All Right Reserved