i am using visual studio with platform io, works perfect.

teensy 4.1 is fully supported by platformio since about a week:
https://github.com/platformio/platform-teensy/releases

cheers