Делаю для конфигуратора команду "Открыть модуль в гите".
Для этого я беру текст из текущего окна модуля и записываю во временный файл.
Нахожу в рабочем каталоге гита аналогичный файл. Отправляю
команду для Visual Studio Code на открытие файла из рабочего каталога. Это работает.
А теперь нужно в открывшемся редакторе VS Code заменить текст на текст из временного файла, куда я сохранил текст из редактора этого модуля в конфигураторе.
В параметрах запуска VSCode не нашел чего то подходящего. Помогайте
C:\WINDOWS\System32>code -h
Visual Studio Code 1.89.1
Usage: code.exe [options][paths...]
To read output from another program, append '-' (e.g. 'echo Hello World | code.exe -')
Options
-d --diff <file> <file> Compare two files with each
other.
-m --merge <path1> <path2> <base> <result> Perform a three-way merge by
providing paths for two modified
versions of a file, the common
origin of both modified versions
and the output file to save merge
results.
-a --add <folder> Add folder(s) to the last active
window.
-g --goto <file:line[:character]> Open a file at the path on the
specified line and character
position.
-n --new-window Force to open a new window.
-r --reuse-window Force to open a file or folder in
an already opened window.
-w --wait Wait for the files to be closed
before returning.
--locale <locale> The locale to use (e.g. en-US or
zh-TW).
--user-data-dir <dir> Specifies the directory that user
data is kept in. Can be used to
open multiple distinct instances
of Code.
--profile <profileName> Opens the provided folder or
workspace with the given profile
and associates the profile with
the workspace. If the profile
does not exist, a new empty one
is created.
-h --help Print usage.
Выдавать глобальные идеи — это удовольствие; искать сволочные маленькие ошибки — вот настоящая работа. Фредерик Брукс-младший