LoginSignup
5
2

More than 5 years have passed since last update.

Visual Studio Codeの拡張機能で簡単にC++をコンパイル・実行する

Last updated at Posted at 2018-08-26

・筆者の環境はWindows10 64bit.
・C++に限らずPython等他の言語でも簡単に実行できるとのこと.

拡張機能「Code Runner」をインストール

こちらよりインストール.

コンパイル・実行

上記をインストール後に該当のC++ファイルを開き,Ctrl+Alt+Nで処理実行.

コード中で標準入力を用いている場合

ファイル>基本設定>設定
「設定の検索」に"runInTerminal"と入力.
"code-runner.runInTerminal": trueに設定変更(デフォではfalse).

上記を設定後,C++ファイルをCtrl+Alt+Nで実行することでターミナルから入力可能になる.

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