Relative Content

Tag Archive for cvisual-studio-code

C++ vs code configuration

I had a C++ environnement stable on vs code(1.91.0) + remote shh: (autocompletion, swich between header/source files, goto definition(ctrl+click), after some upgrades nothing is working :/.

VSCode C/C++ Extension Pack v1.20.5 Not Installing in Workspace

I’m using VSCode and WSL Ubuntu 20.04 to do my programming. I’m trying to install the C/C++ extension v1.20.5. After installing, it says “This extension is disabled in this workspace because it is defined to run in the Remote Extension Host. Please install the extension in WSL: Ubuntu 20.04 to enable.” On top of this message I get three options: “Install in WSL: Ubuntu-20.04” “Uninstall” and “Switch to Pre-Release Version”. Of course, I click the first option, but it doesn’t seem to install, as it puts me back in the same situation where I get the same message and three options above it.
It seems like it isn’t installed in my workspace, only the local workspace, so I looked at this Git extension disabled in VS code with WSL and for step two I do not have the section “WSL: UBUNTU: INSTALLED” and can’t follow the subsequent steps. My extension page just shows the following:

VSCode C/C++ Extension Pack v1.20.5 Not Installing

I’m using VSCode and WSL Ubuntu 20.04 to do my programming. I’m trying to install the C/C++ extension v1.20.5. After installing, it says “This extension is disabled in this workspace because it is defined to run in the Remote Extension Host. Please install the extension in WSL: Ubuntu 20.04 to enable.” On top of this message I get three options: “Install in WSL: Ubuntu-20.04” “Uninstall” and “Switch to Pre-Release Version”. Of course, I click the first option, but it doesn’t seem to install, as it puts me back in the same situation where I get the same message and three options above it. I’m not sure what is happening.

VSCode “Unable to Read File”

Accidently deleted some files but couldn’t remember what it is, I am also new to vs code so idk what I am doing. I get this message after I install a extension,
I tried restarting but I can’t fix itthe screenshot of the message

VS Code encoding when piping std::out to a file

I copied the below code into ray_tracer.cpp, compiled, and ran ray_tracer.exe > image.ppm. It generated the image I expected when running from the command prompt, but when I ran that code from the VS Code terminal, it generated a file that was twice the size and wasn’t the correct format/encoding.