Can't use Intellisense of C/C++ extension #7565
Unanswered
GaoPeng415
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have deploy code-server on my ubuntu server, and it can successfully compile, debug or run C++ code. But the problem is that the syntax highlight, commands, variable, properties... auto complete, publish diagnostics, and code action from C/C++ entension didn't work.
What I want
Here is the screenshots in my local laptop that show what i want.
the word "vector" is green


it suggests me that what i should type
when i make some mistake it will remind me
But these three things don't happen when I use code-server in my server

What I want is the code-server could act consistently with my local vscode.
What I've Tried
I have followed a lot of guidence on the Internet, and also try to ask GPT for help. But all failed. During trail I was aware of that the keypoint is "Intellisense" from "C/C++"

I have followed the guidence on https://code.visualstudio.com/docs/cpp/configure-intellisense. it teaches me to use ">C/C++: Select Intellisense Configuration", and it really work on my local vscode -- after click this
, it will show up
, which is consistent with the guidence.
But when I do this on my code-server, it falied to pop up the follow choices, it just do nothing after i click the ">C/C++: Select Intellisense Configuration".
If anything I've explained is unclear, please don't hesitate to ask me right away.
Thankyou for your help! =)
INFO
os info:
LSB Version: core-11.1.0ubuntu4-noarch:security-11.1.0ubuntu4-noarch
Distributor ID: Ubuntu
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Codename: jammy
code-server version
4.105.1 811ec6c with Code 1.105.1
C/C++ extension:
I download this from https://github.com/microsoft/vscode-cpptools/releases/download/v1.29.0/cpptools-linux-x64.vsix
my json files on workpalce:
tasks.json
settings.json
launch.json
c_cpp_properties.json
extensions installed:
Supplementary
everytime when I reload the code-server, it shows this warning. I think it might be where the problem come from?

Beta Was this translation helpful? Give feedback.
All reactions