I use both Notepad++ and VS Code, and for easy switching between the two, I have set up a Run command in Notepad++ to start VS Code with the current file, and caret position:
code -g $(FULL_CURRENT_PATH):$(CURRENT_LINE):$(CURRENT_COLUMN)
However, the values for line and column are off by 1, so if in Notepad++ I am on line 2, column 4, I find myself at line 1 column 3 in VS Code.
Apart from writing an intermediate script that adds 1 to both values, is there a way to fix this?