0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【VSCode・初心者】pythonファイルをショートカットキーで実行

Last updated at Posted at 2022-09-25

VSCodeでのショートカット作成

1. まずVSCodeを開き、キーボードで ⌘(command)+ k を入力してから ⌘(command)+ s を入力します。

2. そうすると、検索バーが表示されるので python terminal と入力します。

3. 検索結果として、
日本語であれば Python: ターミナルでPythonファイルを実行
英語であれば Run Python File in Terminal
が表示されるので、そこにカーソルを合わせ を押すとショートカットキーを新しく入力できます。

ちなみに、自分はshift + option + p で登録しました。

おまけ

同じように Terminal: Focus Terminal を登録すると、ショートカットキーを使いエディタからターミナルに移動できる。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?