简体   繁体   中英

Working with Visual Studio C++ project in Visual Studio Code

I have a C++ project in Visual Studio and I much prefer Visual Studio Code for editing source files.

Is there a way to work with Visual Studio C++ projects in Visual Studio Code? Like getting include paths from ".sln" file or maybe even running MSBuild.

  1. Open Developer Command Prompt/PowerShell for VS 2019 . This will set necessary environment variables such as include paths.
  2. Navigate to the directory of your project.
  3. Type code. to start VS Code in your current directory.

Now, you will be able to use commands like cl , msbuild etc in the integrated terminal.

Happy coding.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM