LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Questions: code navigation, -search, -highlighting

Solved!
Go to solution

Hello,

 

  1. When using 'Ctrl + I' to go to a definition, is there a handy way / shortcut to go back? It jumps around in a file, opens another file and I want to go to the caller of the particular variable / function.
  2. Is there a history of search results? I use the search quite often but sometimes I want to search withing a block of code that I found in the current search. When I do that, the current search results disappear.
  3. Are there Add-ins for CVI that allow some better code highlighting? E.g. different colors for datatypes, macros, functions, passing parameters, globals, pointers etc, or if a variable is selected and all usages of this variable are highlighted withing the current block. At least in Visual Studio this improves the readability greatly.

 

Thanks!

0 Kudos
Message 1 of 5
(3,964 Views)

Oh wow. I just discovered Options -> Colors -> unselect "Use System Colors". I can make the code so much more readable with that: dark background, strings colored, numbers colored etc.

Question no. 3 is (almost) answered with that.

0 Kudos
Message 2 of 5
(3,959 Views)

Some of the features you are looking for are offered by the Source Code Browser facility: when on a variable, macro, function definition press Ctrl+F1 and the SCB will open showing you some references as in the picture below. When called on a function, it offers the list of callers and calees.

The window can be undocked, and (as highlighted in the lower right) the most recent searches can be reviewed.

 

Screenshot 2016-04-01 08.50.49.png

 

Additionally, if "Go to definition" jumps to a different file, pressing Ctrl+Tab jumps to the most recent window opened. This is always valid: if you click on a panel or control name and press Ctrl+Shift+U to jump in the UIR editor where that particulat panel or control is, with Ctrl+Tab you go back to the source file you were. Quite handy.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 3 of 5
(3,947 Views)

Thanks! That definately helps. It is good to (slowly) learn all the little tweaks of CVI.

0 Kudos
Message 4 of 5
(3,907 Views)
Solution
Accepted by topic author ZerMahlMeer

Hello,

 

1. To navigate back after Go to Definition, or Go to Next Reference you can use Ctrl+G(Go Back)

2. The previous search results are not preserved after a new search. The only history CVI keeps is the search expression in Find dialog.

 

Regards,

Constantin

Message 5 of 5
(3,844 Views)