11
9

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 5 years have passed since last update.

VSCodeでPythonを実行できるようにしたい

Posted at

VSCodeでPythonをポチッと実行したい

環境

  • windows7
  • VSCode1.3.1
  • python3.5

前提

実行構成ファイルのtasks.jsonが存在しない状態。
tasks.jsonが存在する前提で説明されている記事があってちょっとハマったので。)

やってみよう

手順1

F1(もしくは Ctrl+Shift+P)キーを押して Command Palette を開いて、tasksと入力します。
出てきた一覧の中から「タスク:タスクランナーの構成」を選びます。
image1.png

手順2

更に一覧が出てくるので「Others 任意の外部コマンドを実行する例」を選択します。
image2.png

選択すると、tasks.jsonが作成されます。
image3.png

手順3

tasks.jsonを図のように変えて保存しておしまい
image4.png

pythonファイルを作成したら、Ctrl+Shift+Bでガンガン実行しちゃいましょう!
デバッグのやり方はまた今度。

11
9
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
11
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?