2
2

More than 3 years have passed since last update.

Visual Studio CodeでPythonインタプリタっぽいことする

Posted at

経緯

今まで使ってたPyScripterのインタプリタが便利だったから、Visual Studio Codeでも同じことしたかった。

デフォルトの言語をPythonにする

Pythonしか開発で使わない人には便利。Settingsから"new file"で検索し、Default Languageをpythonにする

スクリーンショット 2019-11-22 21.38.08.png

AREPLをインストールする

Pythonコードを作ると、リアルタイムに実行結果を表示してくれるVSCodeのextension。多分他にもこういった拡張機能を持ったextensionはあると思うけど

スクリーンショット 2019-11-22 22.04.45.png

これで新規ファイルを作成すれば.py形式で保存しなくてもPythonファイルと認識されるようになるし、AREPLを起動すれば、リアルタイムに実行結果が表示されるようになる

スクリーンショット 2019-11-22 22.12.26.png

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