No connected devices Visual studio Code

For some reason my device won’t show up as a connected device on VS Code? Even though I have enabled developer mode on my android device and allowed USB Debugging? I’ve tried practically everything and I don’t know how to proceed from here. The device is a Pixel 2 XL

Hello and welcome,
make sure you are not using a charge-only cable.
I remember having lost a considerable amount of time with that.
Hth.

Have you checked by using adb devices? is your device being listed?

you can directly try the flutter run command and check?