Forum Stats

  • 3,816,413 Users
  • 2,259,185 Discussions
  • 7,893,475 Comments

Discussions

Using VSCode as _EDITOR does not work (SQLcl: Release 22.1.0.0 Production Build: 22.1.0.90.1611)

User_MKVLW
User_MKVLW Member Posts: 4 Blue Ribbon

I'm loving sqlcl so far but I've run into a problem with external editors on Windows.

When I set DEFINE _EDITOR = code.cmd in my login.sql and use the edit command to edit open an sql file or the buffer in VS Code the file properly opens in VS Code but the sqlcl prompt returns immediately with what was already existing in the buffer. So even if I edit the file and save sqlcl does not pick up any of those changes.

It would be super helpful if this worked as intended as running sqlcl in the integrated vscode terminal and having edit open in the same instance is very handy.

Best Answer

Answers