Switch to the folder of open file in VS code

It might not be exactly what you are looking for but hear me out.

I usually browse using the explorer. There you have the option to open powershell (or cmd) at your path. In the shell you can type code . which opens the folder in vs code.

I do this since opening a file eg. code foo.jl does not work properly with the vs code for julia plugin.