Can we write python scripts via visual studio instead of the node?

first time writing python in dynamo and its exteremly hard using the python script node. so i was just curious how you usually do it?

ty

Honestly the built-in script node works ok in my experience, and actually, I think its code completion is getting better now with newer releases in recent years.

If you want to switch, I think VSCode is more suitable than a full blown Visual Studio. There are some setup guides online. You will get a far better Python plugin ecosystem within VSCode. Another option is pycharm, but still, you need to set it up first to get autocomplete and everything.

Visual Studio on the other hand, if you eventually move on to Zero-touch nodes, plugin developments with C#/C++, then it is a decent choice.