13
7

More than 5 years have passed since last update.

Visual Studio Codeで今開いているファイルのフルパスを統合ターミナルに渡す

Last updated at Posted at 2019-03-15

手順

キーバインドに下記を追加し、ctrl+shift+tを押す。

{
  "key": "ctrl+shift+t",
  "command": "workbench.action.terminal.sendSequence",
  "args": { "text": "'${file}'" }
}

結果

確認環境はWindows 10 / Visual Studio Code 1.32.1

現在testfile.mdを開いている。

test1.PNG

ctrl+shift+tを押すと、

2.PNG

現在開いてるファイルのフルパスが統合ターミナルに入力される。

参考

How to refer to current file from Integrated Terminal in Visual Studio Code
https://stackoverflow.com/questions/46004397/how-to-refer-to-current-file-from-integrated-terminal-in-visual-studio-code

13
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
7