Search code examples
mercurialvisual-studio-codetortoisehg

VSCode as editor in TortoiseHG?


How do I configure TortoiseHG to use VSCode as my editor?

The TortoiseHG editor setting does not list VSCode.


Solution

  • Update: This is now included in TortoiseHG 4.4.1 as one of the pre-configured tools. Select it in ''TortoiseHG Settings'' -> ''TortoiseHG'' -> ''Visual Editor'': vscode.


    Adjusting this answer for VSCode seems possible with something like [tortoisehg] editor = "C:\Program Files\Microsoft VS Code\Code.exe".