VS Code for embedded programming // Arduino, Pico with C/C++

Поделиться
HTML-код
  • Опубликовано: 22 окт 2024

Комментарии • 9

  • @pd8559
    @pd8559 3 года назад +1

    Impeccable timing. I installed and configured the few extra extensions I didn't already have on my Linux workstation. I also had already followed the default instructions from Espressif for installing the ESP IDF and added their extension for VS Code as well so when configuring for ESP32 I just used the one entry where anyone copying this needs to manually replace $USER with their actual user name/account on their Linux system:
    "/home/$USER/esp/esp-idf/components/**"
    so my full entry looks like this:
    "C_Cpp.default.browse.path": [
    "${workspaceRoot}",
    "/opt/arduino-1.8.13/hardware/arduino/**",
    "/opt/arduino-1.8.13/hardware/tools/**",
    "/home/$USER/esp/esp-idf/components/**"
    ],
    IIRC you can use ** at the end of the directories when configuring VS Code. I did this and it seems to be working on my Linux just fine. Saved me from typing dozens upon dozens of entries for the ESP32 (I did a find | grep -i ".h$" within the esp directory and jaw dropped at all the sub-directories with includes; I'm glad I tried ** and let intellisense deal with it). I did the same to shorten your Arduino path examples. I may have to test some more as I did start by typing in about 10 sub-directory entries so want to be sure it didn't cache those and showed the same results after deleting them and replacing with the single entry.
    'Fira Code' font was a bit quirky. I had an instance of VS Code up when I installed and after editing the config it rendered font in the default serif broken font. I thought I typed the config wrong but all it needed was to stop the instance of VS Code and run it again then it displayed the Fira Code just fine.
    Thank you for the hints. I just used VS Code before as is with defaults, its good to dive a bit deeper into it.

    • @sayanee
      @sayanee  3 года назад +1

      Thanks for sharing! Because I also do wanna use VS Code with ESP32 IDF :)
      I'll definitely try the Arduino paths with ** again. They are already doing the directories search recursively especially with the tag parser option. So, hopefully, it will work and shorten my settings!

  • @stereo92
    @stereo92 3 года назад

    Super nice!! Surely starting to try this. One million thanks :)

  • @V08
    @V08 3 года назад

    Your videos are really helpful. Just started working in a similar domain, helps a lot :)

  • @stephanemuller7032
    @stephanemuller7032 3 года назад

    I love your videos, always interesting and very helpful!
    I was wondering, what theme are you using with iTerm? And how did you set it up?

    • @sayanee
      @sayanee  3 года назад

      Currently, I'm using Material Dark as my iTerm theme. My dotfiles repository has links to the various stuff I use with the terminal: github.com/sayanee/dotfiles including a custom (borrowed from others that I myself got inspired by!!) theme for Oh My ZSH: github.com/sayanee/dotfiles/blob/master/sayanee.zsh-theme
      Hope this helps! Keep tweaking until you like what you have.

  • @Antyelektronika
    @Antyelektronika 3 года назад +1

    You are working on hardware as well as in software? :) BTW, good video about KiCad :)

    • @sayanee
      @sayanee  3 года назад

      Yes, I love both hardware and software 🤦🏻‍♀️Not easy, I know 😅

    • @Antyelektronika
      @Antyelektronika 3 года назад

      @@sayanee Yes, sw is not easy to start :D, some guid would be good from more experienced person :)