Hello,
Simple question and i guess, simple answer.
To be clear: i’m not interested in creating a lib. I just want to see the code (.h and .cpp) in embedded libraries, in other tabs if possible. Seaching for one hour now.
thx!
Hello,
Simple question and i guess, simple answer.
To be clear: i’m not interested in creating a lib. I just want to see the code (.h and .cpp) in embedded libraries, in other tabs if possible. Seaching for one hour now.
thx!
Hi @mutmong. Try this:
#include directive.The library file that contains the declaration or definition of the object you selected will open in an editor tab in Arduino IDE.
When you are finished looking at the file in the Arduino IDE editor, you can click the X icon on the editor tab to close it.
This feature is useful in the case where you want to get more information about something specific in your sketch code. It is less useful in the case where you want to study the library code as a whole. In that case, you should simply open the library files in a standard text editor, not Arduino IDE. If you don't already have a suitable text editor you use, I can recommend VS Code as an excellent professional grade programming editor.
Even in that case, Arduino IDE's "Go to Definition" feature can still be useful in locating the path of the library on your hard drive. You can find the path by hovering the mouse pointer over the Arduino IDE editor tab. After a second, a tooltip will appear that shows the path of the file on your hard drive.
The file may be under a folder that is hidden by default by your operating system.
Thank you for your superfast answer. The “Go to definition” in the code (on the right spot) did it!…and i can keep on diggin’. thx!
You are welcome. I'm glad if I was able to be of assistance.
Regards, Per