Go Down

Topic: search function (Read 194 times) previous topic - next topic

xvitusx

Hello,
I am looking for a search function, to find the line, where I used my variable. It isnt always easy to find things in a 1000 line code... .
Anybody know such a feature?

Tanks :D

stowite

#1
Dec 15, 2016, 10:16 pm Last Edit: Dec 15, 2016, 10:24 pm by stowite
The Arduino IDE has a 'find' option under 'Edit' . If this does not do what you want then pretty much every editor I have ever used has had a 'find' or equivalent. Decent IDE have in built 'find'.

Robin2

I use the Geany editor for all my Arduino (and other) programming. Highlight a piece of text and Shift-Ctrl-M highlights every other example. And there is also a regular "find" facility.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

lloyddean

And on macOS I use, and would recommend, TextWrangler from BareBones Software.

saximus

My favourite alternative is Notepad++. It automatically highlights every instance of whatever word you have selected, no extra settings or key presses required.

econjack

My favourite alternative is Notepad++. It automatically highlights every instance of whatever word you have selected, no extra settings or key presses required.
Agree...plus it's free:
https://notepad-plus-plus.org/download/v7.2.2.html

sterretje

Any editor will do the job ;) But if you use single character variable names you might have a problem, specifically if they are global. The variable name 'i' is specifically nice because it often occurs many times in code (while, pinMode, digitalRead, digitalWrite and so on) 8)


If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

UKHeliBob

Even the humble Arduino IDE has some tricks up its sleeve.

Double click on the name of a variable to highlight it, then Ctrl + E, Ctrl + F, Return will find the next instance of the text as will subsequent Returns.
Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy