NI TestStand Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
magnux

Highlight the scope of selected a conditional step

Status: New

Obviously it's not a great idea to have loads of nested conditional steps, but for longer sequences even with only a few nested conditions, I find it hard to find the matching END for example when an if-statement. Sure I can count the number of lines, but I think it would be a lot easier if the "scope line" that indicates the scope would stand out more and become bold or blue (like the selected line)

 

Here's are two mockups (bold line)

 

bold-line.png

 

An alternative indication could be to highlight the ending line of the scope like below.

 

end-highlight.png

 

Having a keyboard shortcut for jumping between beginning and the ending within a scope would also be very helpful!

In Microsoft Visual Studio there's a keyboard shortcut (CTRL + [ ) which toggles the cursor position between the and and beginning of a scope, and it works with all things that encapsulates a scope or a string or expression. e.g. curly braces in code sections, quoted strings etc.

4 Comments
pawhan11
Active Participant

Great Idea!

Also function like collapse/expand code structure would be nice

ee-jallen
Member

Bolding the scope line sounds great.

RavensFan
Knight of NI

ee-jallen.

 

If you like the idea, then you should register your vote by clicking the Kudo star!

 

Kudoes are what matters, not comments.

 

Peter.Norlen
Member

It would also be nice if the "end" step is also deleted in the case of a deletion of a starting "if". However we need to handle "else" expressions too... So maybe only applicable on Ifs/Whiles/DoWhiles without any middle steps like "Else"...

 

Maybe an option in the rightclick menu. "Delete" vs "Delete step and all related flow steps".