Hi
In Netexpress 3.1 I used to be able to search a source file for text and then compress the results using F9 and then place the cursor on a line and press F9 again to expand the text.
In 5.1 the second F9 does not expand the text. The only recourse is to use the mouse and right click and select 'expand'. This costs me time and I don't like switching between mouse and keyboard.
Does anybody know how to achieve using keyboard in 5.1?
Regards
Ian
Actually, by default the F9 key is used to toggle breakpoints and Ctrl J is used to toggle compress/expand but you can define these keys anyway that you like.
From the IDE menu select Options-->Customize IDE and select the Keyboard Configuration tab.
Select View in the lefthand column and then Toggle Compress in the right hand column.
Press the key that you wish to use and add it to the key list as shown below:
Instead of using the keyboard you can also toggle this option by clicking on the Compress/Expand icon on the toolbar:

Hi
In Netexpress 3.1 I used to be able to search a source file for text and then compress the results using F9 and then place the cursor on a line and press F9 again to expand the text.
In 5.1 the second F9 does not expand the text. The only recourse is to use the mouse and right click and select 'expand'. This costs me time and I don't like switching between mouse and keyboard.
Does anybody know how to achieve using keyboard in 5.1?
Regards
Ian
Thanks Chris
I don't want to have to use the mouse to the icon is a no go.
I see that Ctrl-J does indeed also compress. It does not expand. Is there not a default key for expand?
This behaviour is definitely different to 3.1.
I'm reluctant to just allocate some other key combination to expand in case I select one that is already in use.
I've done it anyway, reallocating F10 from 'run thru' as I never press that key preferring the CTRL S/X/C combinations when running through programs.
Thanks
Hi
In Netexpress 3.1 I used to be able to search a source file for text and then compress the results using F9 and then place the cursor on a line and press F9 again to expand the text.
In 5.1 the second F9 does not expand the text. The only recourse is to use the mouse and right click and select 'expand'. This costs me time and I don't like switching between mouse and keyboard.
Does anybody know how to achieve using keyboard in 5.1?
Regards
Ian
It seems as if Ctrl J is set by default to the command Compress Text Finds which is a one way operation.
Toggle compress is the command that you need to set in order for it to both compress and expand.
You can see what keys are currently assigned by clicking on the command option in the window and looking in the Current keys window.
Thanks.