luni
Well-known member
why not create a plugin for vscode out of visual teensy
When I started this project a couple of years ago I was thinking of a plugin as well. I decided to not make a plugin/extension because of two reasons:
- I didn't want a dependency on the used editor (editors tend to come and go and change...(*) ).
As you might have noticed, besides the convenience that you have intellisense and can start building and upload with the standard vsCode menu, the generated project actually does not depend on vsCode at all. If you like, you can simply type "make all" or "make upload" etc. in the project folder to build/upload without even starting vsCode.
- Probably more important: I have a physical aversion to untyped programing languages .
But I do understand that for some users it might be more convenient to have this as a vsCode extension. On the other hand, if one is happy with a plugin, why wouldn't he/she use PIO?
Actually your plugin could simply clone the TeensyDuino repo, it contains everything you need to compile for Teensy. Well, unfortunately you need to grab boards.txt and platform.txt somewhere but those are pretty stable and don't change often. The compiler can be downloaded from ARM and just needs to be unzipped. (see here https://github.com/TeensyUser/doc/wiki/GCC#Switching-between-different-toolchains for more info). TyCommander and (if you prefer) Teensy.exe are also available to download.Then Paul @ PJRC only need to have a TeensyDuino installer that don't require that Arduino Is installed
Feel free to fork the code base and transform it to a plugin, it is under MIT license. Looking forward to test your plugin.
---
(*) Well, VIM might be an exception but probably only because once you started it you won't find out anymore https://stackoverflow.blog/2017/05/23/stack-overflow-helping-one-million-developers-exit-vim/
Last edited: