With 'end if' selected (and no more on that line) I use <Ctrl + Shift + F>. On the resulting browser page only 'End' has been used. So I type the change needed to get 'end if', and then choose Documentation. That gives me 94 hits and none of the 18 on the first page show 'end if'. The very first 'hit' is headed 'MKRGSM - voice.voiceCall()', which contains neither 'end' nor if'!
Should I ignore this facility and insead use Help > Reference, and then find the string I want myself on that page?
That was a poor example *, but my question was general. Try the familiar if instead. Below is a screenshot of the 'help' provided. 854 hits with 18 on first page, the first of which is headed Webhooks with Arduino IoT Cloud And none showing simply the syntax of the 'if' command, which is what I'd expected to be the opening entry.
I'll stick to my alternative, Help > Reference. The KB shortcut would be better deployed on that IMO. Even better if it took you straight to the string concerned,
I'm not surprised you're curious about my 'end if'. Haven't done any Arduino coding for a month or so. But spent most of last week writing macros with my application Macro Express Pro. It expects every 'If' section to be ended with an 'End If', and I guess it was muscle memory prompting that.
Personally I think that the Reference should only contain details of Arduino specific functions and not general C/C++ functions, otherwise where do you stop ?
Thanks, no I didn't. Still think it's a long route to get syntax. (And in my original 'end if' example I suppose I'd quickly have come to conclude there is no such command.)
What does Macro Express Pro have to do with Arduino??? There is NO "end if" in c, or c++, or c/c++ pre-processor macros, so you seem to be asking about something that has nothing whtsoever to do with Arduino
I still don't understand how or why your Arduino code contained "end if" and why you thought that Ctrl + Shift + F would find it in the Arduino reference
Because I carelessly typed it as a new line after an else{}, probably for the reason I explained. Although that mistake was quickly corrected, the more general one remained.
It’s a shame there is no one-click or KB shortcut for getting straight to the syntax of a selected string. And ideally, a ‘No such command’, in cases like ‘end if’.