Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 5 of 5

Thread: How to add Teensy board to VS Code with Arduino plugin?

  1. #1
    Junior Member
    Join Date
    Jan 2018
    Posts
    10

    How to add Teensy board to VS Code with Arduino plugin?

    I've switched to Microsoft's VSCode as my IDE of choice for my day job (it runs on Windows, it runs on Linux, it handles Node and Docker and integrated Git, perfect), so i've just started using it for Arduino with the Microsoft Arduino plugin, and it all works well, with all the features you would expect from a decent IDE that are sadly lacking in the Arduino IDE.

    I've just opened a Teensy project, and noticed that the Teensy boards are not present, event though they are present within the Arduino IDE (installed via Teensyduino).

    From within VSCode i can call up an Arduino board manager, but i cant see the Teensy boards, and i cant see how to add them either.

    Has anyone managed to add the Teensy boards to VsCode?

    I'm not interested in the "Micro Code" plugin, thanks.

    Cheers,

    HSIBOY

  2. #2
    Senior Member
    Join Date
    Nov 2012
    Location
    Boston, MA, USA
    Posts
    1,134
    The VS Code Arduino extension is open source, apparently

    https://blogs.msdn.microsoft.com/iot...-open-sourced/

  3. #3
    Junior Member
    Join Date
    Jan 2018
    Posts
    10
    Quote Originally Posted by Nantonos View Post
    The VS Code Arduino extension is open source, apparently

    https://blogs.msdn.microsoft.com/iot...-open-sourced/
    It is yes, and i looked through the repo, and here's what i found (in case anyone else looks this up).

    Microsoft Visual Code, with the arduino extension, has a fully featured board manager, the same as the Arduino IDE. So you might think it trivial to add the Teensy.

    No. PJRC created the Teensyduino installer, not just to drop an updated boards.txt and move some libs and examples into the respective directories, but also to patch the inner workings of the Arduino IDE.

    Therefore, even if i did create a Json object with the relevant info for the Teensy boards, and feed that in to the board manager, it would remain un patched by PJRC, and certain features just wouldn't work.

    I doubt PJRC has time or inclination to produce a version of Teensyduino that supports MS Code (although it does run on linux, wink wink), and even if he did, i imagine it would open up a raft of, please support <insert IDE of the month here> from the masses.

    HSIBOY

  4. #4
    Junior Member
    Join Date
    Jan 2020
    Posts
    1
    This is an old thread, but as it was the top search result I wanted to come back here to post that things have changed in the last 2 years.
    There may be others, but a VSCode solution can be found at https://github.com/luni64/VisualTeensy that generates all of the necessary files.

  5. #5
    Junior Member
    Join Date
    Dec 2019
    Posts
    4
    It's worth to mention that there are some author's comments regarding the VisualTeensy https://forum.pjrc.com/threads/53604...l=1#post187220

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •