3

How to add Visual Studio Code editor as a default editor in WinSCP, when edit/view files.

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
Patel Nitesh
  • 53
  • 2
  • 12

2 Answers2

4

In WinSCP:

  • Go to Options > Preferences;
  • Go to Editors tab;
  • Click Add button;
  • On Add Editor dialog, browse for code.exe of your Visual Studio Code installation. By default that should be:

    C:\Users\username\AppData\Local\Programs\Microsoft VS Code\Code.exe
    
  • Move the added editor entry to the top using Up button.
Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
-1

VS Code opens "VS" and "code" window every time I open a file from WinSCP

In WinSCP:

Go to Options > Preferences; Go to Editors tab;

"%LOCALAPPDATA%\Programs\Microsoft VS Code\Code.exe" !.!