Intellisense VSCODE not giving suggestions

Hello!

The intellisense of platformio builds fine, with no errors and is capable of finding references to different functions. However, it doesn’t offer any suggestions. My cpp properties json file is generated properly and everything works (references) except for the suggestions. Is there anything i can do to solve this?

Could you share your platformio.ini?

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env:nanoatmega328]
platform = atmelavr
board = nanoatmega328
framework = arduino
lib_deps = 
	tockn/MPU6050_tockn@^1.5.2
	adafruit/Adafruit BMP280 Library@^2.6.8
	adafruit/Adafruit Unified Sensor@^1.1.9
	adafruit/Adafruit BusIO@^1.14.1
	SPI
	devinaconley/Plotter@^2.4.1
	adafruit/Adafruit MPU6050@^2.2.4

Do you use the latest VSCode and all extensions are up to date?

Yeah. Everything is up to date and i even reinstalled everything

Can you provide a full screenshot of VSCode with your src/main.cpp open?

cpp properties.json

//
// !!! WARNING !!! AUTO-GENERATED FILE!
// PLEASE DO NOT MODIFY IT AND USE "platformio.ini":
// https://docs.platformio.org/page/projectconf/section_env_build.html#build-flags
//
{
    "configurations": [
        {
            "name": "PlatformIO",
            "includePath": [
                "/Users/vikrant/Documents/PlatformIO/Projects/flight_computer/include",
                "/Users/vikrant/Documents/PlatformIO/Projects/flight_computer/src",
                "/Users/vikrant/Documents/PlatformIO/Projects/flight_computer/.pio/libdeps/nanoatmega328/KalmanFilter/src",
                "/Users/vikrant/Documents/PlatformIO/Projects/flight_computer/.pio/libdeps/nanoatmega328/Adafruit MPU6050",
                "/Users/vikrant/Documents/PlatformIO/Projects/flight_computer/.pio/libdeps/nanoatmega328/Plotter/src",
                "/Users/vikrant/Documents/PlatformIO/Projects/flight_computer/.pio/libdeps/nanoatmega328/Adafruit BMP280 Library",
                "/Users/vikrant/Documents/PlatformIO/Projects/flight_computer/.pio/libdeps/nanoatmega328/Adafruit BusIO",
                "/Users/vikrant/.platformio/packages/framework-arduino-avr/libraries/SPI/src",
                "/Users/vikrant/Documents/PlatformIO/Projects/flight_computer/.pio/libdeps/nanoatmega328/Adafruit Unified Sensor",
                "/Users/vikrant/Documents/PlatformIO/Projects/flight_computer/.pio/libdeps/nanoatmega328/MPU6050_tockn/src",
                "/Users/vikrant/.platformio/packages/framework-arduino-avr/libraries/Wire/src",
                "/Users/vikrant/.platformio/packages/framework-arduino-avr/cores/arduino",
                "/Users/vikrant/.platformio/packages/framework-arduino-avr/variants/eightanaloginputs",
                "/Users/vikrant/Documents/PlatformIO/Projects/flight_computer/.pio/libdeps/nanoatmega328/Adafruit GFX Library",
                "/Users/vikrant/Documents/PlatformIO/Projects/flight_computer/.pio/libdeps/nanoatmega328/Adafruit SSD1306",
                "/Users/vikrant/.platformio/packages/framework-arduino-avr/libraries/EEPROM/src",
                "/Users/vikrant/.platformio/packages/framework-arduino-avr/libraries/HID/src",
                "/Users/vikrant/.platformio/packages/framework-arduino-avr/libraries/SoftwareSerial/src",
                ""
            ],
            "browse": {
                "limitSymbolsToIncludedHeaders": true,
                "path": [
                    "/Users/vikrant/Documents/PlatformIO/Projects/flight_computer/include",
                    "/Users/vikrant/Documents/PlatformIO/Projects/flight_computer/src",
                    "/Users/vikrant/Documents/PlatformIO/Projects/flight_computer/.pio/libdeps/nanoatmega328/KalmanFilter/src",
                    "/Users/vikrant/Documents/PlatformIO/Projects/flight_computer/.pio/libdeps/nanoatmega328/Adafruit MPU6050",
                    "/Users/vikrant/Documents/PlatformIO/Projects/flight_computer/.pio/libdeps/nanoatmega328/Plotter/src",
                    "/Users/vikrant/Documents/PlatformIO/Projects/flight_computer/.pio/libdeps/nanoatmega328/Adafruit BMP280 Library",
                    "/Users/vikrant/Documents/PlatformIO/Projects/flight_computer/.pio/libdeps/nanoatmega328/Adafruit BusIO",
                    "/Users/vikrant/.platformio/packages/framework-arduino-avr/libraries/SPI/src",
                    "/Users/vikrant/Documents/PlatformIO/Projects/flight_computer/.pio/libdeps/nanoatmega328/Adafruit Unified Sensor",
                    "/Users/vikrant/Documents/PlatformIO/Projects/flight_computer/.pio/libdeps/nanoatmega328/MPU6050_tockn/src",
                    "/Users/vikrant/.platformio/packages/framework-arduino-avr/libraries/Wire/src",
                    "/Users/vikrant/.platformio/packages/framework-arduino-avr/cores/arduino",
                    "/Users/vikrant/.platformio/packages/framework-arduino-avr/variants/eightanaloginputs",
                    "/Users/vikrant/Documents/PlatformIO/Projects/flight_computer/.pio/libdeps/nanoatmega328/Adafruit GFX Library",
                    "/Users/vikrant/Documents/PlatformIO/Projects/flight_computer/.pio/libdeps/nanoatmega328/Adafruit SSD1306",
                    "/Users/vikrant/.platformio/packages/framework-arduino-avr/libraries/EEPROM/src",
                    "/Users/vikrant/.platformio/packages/framework-arduino-avr/libraries/HID/src",
                    "/Users/vikrant/.platformio/packages/framework-arduino-avr/libraries/SoftwareSerial/src",
                    ""
                ]
            },
            "defines": [
                "PLATFORMIO=60110",
                "ARDUINO_AVR_NANO",
                "F_CPU=16000000L",
                "ARDUINO_ARCH_AVR",
                "ARDUINO=10808",
                "__AVR_ATmega328P__",
                ""
            ],
            "cStandard": "gnu11",
            "cppStandard": "gnu++11",
            "compilerPath": "/Users/vikrant/.platformio/packages/toolchain-atmelavr/bin/avr-gcc",
            "compilerArgs": [
                "-mmcu=atmega328p",
                ""
            ]
        }
    ],
    "version": 4
}

Looks all fine to me. What are the list of installed extension in the extension sidebar?

Can you deactivate “for this workspace” every extension but C/C++ by Microsoft and PlatformIO?

Still doesn’t work. Only suggestions i get are #endregion and #region

You did restart / reload VSCode after that? If yes, I’d suggest reinstalling VSCode and PlatformIO from scratch that this point (especially delete C:\Users\<user>\.platformio before reinstall)

Do you have any custom settings in VSCode? Maybe you disabled something or changed the keybindings. See Visual Studio Code User and Workspace Settings