manajroのvscode classicでCプログラムをコンパイルしようとすると、「C / C ++:gccビルドとデバッグアクティブファイル」が見つかりません。

manajroのvscode classicでCプログラムをコンパイルしようとすると、「C / C ++:gccビルドとデバッグアクティブファイル」が見つかりません。

矢印ボタンをクリックすると: 次のオプションが提供されます。 オプションを探していますC/C++: gcc build and debug active file。新しくインストールされたmanjaroとvscode。 VSCodeはスナップ経由でインストールされ、クラシックバージョンがインストールされます。

これは次の出力ですgcc --version

gcc(GCC) 12.2.1 20230201 Copyright (C) 2022 Free Software Foundation, Inc.これはフリーソフトウェアです。コピー条件についてはソースをご覧ください。特定の目的に対する商品性や適合性の保証はありません。

これはvscodes端末にあります:

ああ、C / C ++拡張パッケージがあります。

出力snap info --verbose code

summary: Code editing. Redefined.
health:
  status:  unknown
  message: health has not been set
publisher: Visual Studio Code (vscode✓)
store-url: https://snapcraft.io/code
contact:   https://twitter.com/code
links:
  contact:
    - https://twitter.com/code
  website:
    - https://code.visualstudio.com/
license: unset
description: |
  Visual Studio Code is a new choice of tool that combines the
  simplicity of a code editor with what developers need for the core
  edit-build-debug cycle.
commands:
  - code
  - code.url-handler
notes:               
  private:           false
  confinement:       classic
  devmode:           false
  jailmode:          false
  trymode:           false
  enabled:           true
  broken:            false
  ignore-validation: false
snap-id:      Ht0aUHi7ofh9Fbwh6m7jUN2pAy6kzBiu
tracking:     latest/stable
refresh-date: today at 10:49 CET
channels:
  latest/stable:    5e805b79 2023-03-09 (121) 250MB classic
  latest/candidate: ↑                               
  latest/beta:      ↑                               
  latest/edge:      ↑                               
installed:          5e805b79            (121) 250MB classic

私のc_cpp_properties.jsonファイル:

{
    "configurations": [
        {
            "name": "Linux",
            "includePath": [
                "${workspaceFolder}/**"
            ],
            "defines": [],
            "compilerPath": "/usr/bin/gcc",
            "cStandard": "c99",
            "cppStandard": "c++14",
            "intelliSenseMode": "linux-gcc-x86",
            "compilerArgs": [
                "-Wall"
            ]
        }
    ],
    "version": 4
}

ベストアンサー1

おすすめ記事