Running Visual Studio Code On MacOS
Có thể bạn quan tâm
- Docs
- Updates
- Blog
- API
- Extensions
- MCP
- FAQ
- Search
-
- Search Docs
- Download
Version 1.107 is now available! Read about the new features and fixes from November.
Dismiss this update Topics Overview Overview Linux macOS Windows VS Code for the Web Raspberry Pi Network Additional Components Enterprise Uninstall VS Code Tutorial Copilot Quickstart User Interface Personalize VS Code Install Extensions Tips and Tricks Intro Videos Display Language Layout Keyboard Shortcuts Settings Settings Sync Extension Marketplace Extension Runtime Security Themes Profiles Overview Voice Interactions Command Line Interface Telemetry Basic Editing IntelliSense Code Navigation Refactoring Snippets Overview Multi-root Workspaces Workspace Trust Tasks Debugging Debug Configuration Testing Port Forwarding Overview Setup Quickstart Overview Chat Sessions Add Context Review Edits Planning Checkpoints Tools Inline Chat Prompt Examples Chat Debug View Overview Agents Tutorial Background Agents Cloud Agents Inline Suggestions Overview Instructions Prompt Files Custom Agents Skills Language Models MCP Prompt Engineering Context Engineering Edit Notebooks with AI Test with AI Debug with AI MCP Dev Guide Smart Actions Tips and Tricks Security FAQ Cheat Sheet Settings Reference Workspace Context Overview Quickstart Staging & Committing Branches & Worktrees Repositories & Remotes Merge Conflicts Collaborate on GitHub Troubleshooting FAQ Getting Started Tutorial Terminal Basics Terminal Profiles Shell Integration Appearance Advanced Overview JavaScript JSON HTML Emmet CSS, SCSS and Less TypeScript Markdown PowerShell C++ Java PHP Python Julia R Ruby Rust Go T-SQL C# .NET Polyglot Swift Working with JavaScript Node.js Tutorial Node.js Debugging Deploy Node.js Apps Browser Debugging Angular Tutorial React Tutorial Vue Tutorial Debugging Recipes Performance Profiling Extensions Tutorial Compiling Editing Refactoring Debugging Quick Start Tutorial Run Python Code Editing Linting Formatting Debugging Environments Testing Python Interactive Django Tutorial FastAPI Tutorial Flask Tutorial Create Containers Deploy Python Apps Python in the Web Settings Reference Getting Started Navigate and Edit Refactoring Formatting and Linting Project Management Build Tools Run and Debug Testing Spring Boot Modernizing Java Apps Application Servers Deploy Java Apps GUI Applications Extensions FAQ Intro Videos GCC on Linux GCC on Windows GCC on Windows Subsystem for Linux Clang on macOS Microsoft C++ on Windows Build with CMake CMake Tools on Linux CMake Quick Start Editing and Navigating Debugging Configure Debugging Refactoring Settings Reference Configure IntelliSense Configure IntelliSense for Cross-Compiling FAQ Intro Videos Get Started Navigate and Edit IntelliCode Refactoring Formatting and Linting Project Management Build Tools Package Management Run and Debug Testing FAQ Overview Node.js Python ASP.NET Core Debug Docker Compose Registries Deploy to Azure Choose a Dev Environment Customize Develop with Kubernetes Tips and Tricks Overview Jupyter Notebooks Data Science Tutorial Python Interactive Data Wrangler Quick Start Data Wrangler PyTorch Support Azure Machine Learning Manage Jupyter Kernels Jupyter Notebooks on the Web Data science in Microsoft Fabric AI Toolkit Overview AI Toolkit Copilot tools Models Playground Agent Builder Bulk Run Evaluation Fine-tuning (Automated Setup) Fine-tuning (Project Template) Model Conversion Tracing Profiling FAQ File Structure Manual Model Conversion Manual Model Conversion On GPU Setup Environment Without AI Toolkit Template Project Overview Getting Started Resources View Deployment VS Code for the Web - Azure Containers Azure Kubernetes Service Kubernetes MongoDB Remote Debugging for Node.js Overview SSH Dev Containers Windows Subsystem for Linux GitHub Codespaces VS Code Server Tunnels SSH Tutorial WSL Tutorial Tips and Tricks FAQ Overview Tutorial Attach to Container Create Dev Container Advanced Containers devcontainer.json Dev Container CLI Tips and Tricks FAQ Default Keyboard Shortcuts Default Settings Substitution Variables Tasks SchemaOn this page there are 8 sections
- Installation
- Install VS Code on macOS
- Launch VS Code from the command line
- Updates
- Touch Bar support
- Mojave privacy protections
- Next steps
- Common questions
Installation
-
Download and install Visual Studio Code
NoteVS Code ships monthly releases and supports auto-update when a new release is available.
-
Install additional components
Install Git, Node.js, TypeScript, language runtimes, and more.
-
Install VS Code extensions from the Visual Studio Marketplace
Customize VS Code with themes, formatters, language extensions and debuggers for your favorite languages, and more.
-
Enable AI features
TipIf you don't yet have a Copilot subscription, you can use Copilot for free by signing up for the Copilot Free plan and get a monthly limit of inline suggestions and chat interactions.
-
Get started with the VS Code tutorial
Discover the user interface and key features of VS Code.
Install VS Code on macOS
-
Download Visual Studio Code for macOS.
-
Open the browser's download list and locate the downloaded app or archive.
-
If archive, extract the archive contents. Use double-click for some browsers or select the 'magnifying glass' icon with Safari.
-
Drag Visual Studio Code.app to the Applications folder, making it available in the macOS Launchpad.
-
Open VS Code from the Applications folder, by double clicking the icon.
-
Add VS Code to your Dock by right-clicking on the icon, located in the Dock, to bring up the context menu and choosing Options, Keep in Dock.
Launch VS Code from the command line
To run VS Code from the terminal by typing code, add it to the $PATH environment variable using one of the following methods:
Configure the path with VS Code
-
Launch VS Code
-
Open the Command Palette (Cmd+Shift+P), type 'shell command', and run the Shell Command: Install 'code' command in PATH command.

-
Restart the terminal for the new $PATH value to take effect.
You can now type 'code .' in any folder to start editing files in that folder.
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 running the Shell Command: Install 'code' command in PATH command.
Manually configure the path
To manually add VS Code to your path:
-
Run the following commands:
Zsh:
cat << EOF >> ~/.bash_profile # Add Visual Studio Code (code) export PATH="\$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin" EOF NoteThe leading slash \ is required to prevent $PATH from expanding during the concatenation. Remove the leading slash if you want to run the export command directly in a terminal.
-
Start a new terminal to pick up your changes.
You can now type 'code .' in any folder to start editing files in that folder.
Updates
VS Code ships monthly releases and supports auto-update when a new release is available. If you're prompted by VS Code, accept the newest update and it will get installed (you won't need to do anything else to get the latest bits).
NoteYou can disable auto-update if you prefer to update VS Code on your own schedule.
Touch Bar support
Out of the box, VS Code adds the following Touch Bar actions:
- To navigate in the editor history
- The full Debug tool bar to control the debugger on your Touch Bar:

Mojave privacy protections
On macOS Mojave, you might see dialogs saying "Visual Studio Code would like to access your {calendar/contacts/photos}." This is due to the new privacy protections in Mojave and is not specific to VS Code. The same dialogs might be displayed when running other applications as well. The dialog is shown once for each type of personal data and it is fine to choose Don't Allow, since VS Code does not need access to those folders.
Next steps
Once you have installed VS Code, these topics will help you learn more about it:
- VS Code tutorial - A quick hands-on tour of the key features of VS Code.
- Tips and Tricks - A collection of productivity tips for working with VS Code.
- AI-assisted coding - Learn about using GitHub Copilot in VS Code to help you write code faster.
Common questions
Why do I see "Visual Studio Code would like access to your calendar."
If you are running macOS Mojave version, you may see dialogs saying "Visual Studio Code would like to access your {calendar/contacts/photos}." This is due to the new privacy protections in Mojave discussed above. It is fine to choose Don't Allow since VS Code does not need access to those folders.
VS Code fails to update
If VS Code doesn't update once it restarts, it might be set under quarantine by macOS. Follow the steps in this issue for resolution.
Does VS Code run on Apple silicon machines?
Yes, VS Code supports macOS Arm64 builds that can run on Macs with the Apple silicon chipsets. You can install the Universal build, which includes both Intel and Apple silicon builds, or one of the platform-specific builds.
12/10/2025Từ khóa » Cài đặt Visual Studio Code Trên Macbook
-
Cài đặt Visual Studio Code Trong MacOS Với Brew
-
How To Install Visual Studio Code On MacOS & Windows - YouTube
-
Hướng Dẫn Cài Đặt Và Sử Dụng Visual Studio Code (VS ... - Morioh
-
Visual Studio Code 2022 Cho Mac 1.68.1 - .vn
-
Cài đặt Visual Studio Code để Lập Trình C/C++ Trên Windows Và MacOs
-
Hướng Dẫn Cài Đặt Và Sử Dụng Visual ... - TƯ VẤN SINH VIÊN HCM
-
Install Visual Studio For Mac - Microsoft Docs
-
Hướng Dẫn Cài đặt Visual Studio Code (VS Code) Lập Trình Siêu Ngầu
-
Cài đặt Và Cấu Hình Python3 Cho Visual Studio Code Hệ điều Hành ...
-
Cài đặt Visual Studio Code Trên Windows - Openplanning
-
Hướng Dẫn Cài đặt Visual Studio Code - Blog Hiếu Đá
-
Tải Và Cài đặt Visual Studio Code Lập Trình C/C++ Mac OS
-
Hướng Dẫn Cài đặt Visual Studio Code Cho Người Mới Học Lập Trình
-
Microsoft Ra Mắt Visual Studio Preview Cho Mac, Mời Anh Em Dev Tải ...