Skip to content

Run vscode cppbuild tasks with git bash #10477

Answered by FieryRMS
FieryRMS asked this question in Q&A
Discussion options

You must be logged in to vote

I solved it myself, this was the process.

  1. Open the folder containing all the extension code with vscode, for windows it's %USERPROFILE%\.vscode\extensions
  2. Disable auto-updates. If you want to disable just for the C/C++ extension, follow this tutorial.
  3. ctrl+shift+f then paste this line, command = `cmd /c chcp 65001>nul && ${command}`;
  4. Open the file with that line, and comment it, under that line, paste,
    this.options.shell = 'bash'; or use the shell of your choice.
  5. save and reload vscode, now it should use your preferred shell.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fvydjt
Comment options

Answer selected by FieryRMS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants