Editing blueprint scripts in visual studio code

Hello I was wondering if it is possible to open up blueprint scripts in vs code. If i double click on a blueprint node it just says “It appears visual studio is not installed”
I have tried setting my default editor to vs code but this hasn’t made any difference.

I’d like to get a look at how they are written so I can get some ideas about best practices/writing my own.

Many thanks!