You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am importing stdlib.h in c to use size_t, but everytime i save it removes it. I looked at the settings and it shouldnt happen, i looked up on forums and still nothing. I don't know what to do
@Elyeden0 What extension is removing it? I don't know what feature in our extension would be doing that. Can try disabling the other extensions? Can you try setting C_Cpp.loggingLevel to "Debug" and look at the C/C++ logging window to see what commands are being processed when the removal occurs? I assume by "import" you mean #include.
Hi.
Yes i was talking about include
I solved my problem, for whatever reason the c/cpp tools automatically removed the 12th line in every file. I completely erased vscode from my computer and reinstalled it, same for all the extensions, and the problem is gone. Maybe i did something wrong while trying to solve it, but now it's gone. Thanks alot
Environment
VS Code version: Code 1.94.2 (384ff7382de624fb94dbaf6da11977bba1ecd427, 2024-10-09T16:08:44.566Z)
OS version: Windows_NT x64 10.0.26100
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Extensions (5)
A/B Experiments
Bug Summary and Steps to Reproduce
Type: Bug
I am importing stdlib.h in c to use size_t, but everytime i save it removes it. I looked at the settings and it shouldnt happen, i looked up on forums and still nothing. I don't know what to do
Configuration and Logs
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "c17",
"cppStandard": "gnu++17",
"intelliSenseMode": "linux-gcc-x64"
}
],
"version": 4
}
Other Extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: