Tip: Quick function and procedure navigation

44 views
Skip to first unread message

Bill Stewart

unread,
May 7, 2025, 10:02:32 AM5/7/25
to innosetup
For IS scripts that have a large number of functions and procedures in the [Code] section, I find it's sometimes helpful to generate a list for review and quick double-click navigation:

1. Enable regular expressions (Alt+R or Edit|Use Regular Expressions)

2. Execute Find in Files (Edit|Find in Files or Ctrl+Shift+F)

3. For the search string, write: ^(function|procedure)

The Find Results pane at the bottom will contain a list of functions and procedures. You have to repeat the search if the code lines change, but I find it's handy for quick navigation where there are a large number of functions and procedures.

Martijn Laan

unread,
May 8, 2025, 10:46:50 AM5/8/25
to innosetup
Op 7-5-2025 om 16:02 schreef 'Bill Stewart' via innosetup:
You have to repeat the search if the code lines change, but I find it's handy for quick navigation where there are a large number of functions and procedures.

In the next version the result list will update its line numbers when you add or delete lines. It still has some limits but before it didn't update at all.

Greetings,
Martijn

Bill Stewart

unread,
May 8, 2025, 12:37:48 PM5/8/25
to innosetup
On Thursday, May 8, 2025 at 8:46:50 AM UTC-6 Martijn Laan wrote:

In the next version the result list will update its line numbers when you add or delete lines. It still has some limits but before it didn't update at all.

Nice, thanks!

Bill
Reply all
Reply to author
Forward
0 new messages