Visual Studio is consistently one of the highest trending IDEs on the market. It has powerful features to increase code productivity. Because of this, Synergex brought traditional Synergy coding into Visual Studio. But how do you use it? I would like to focus on some of the hotkeys and organizational features available inside Visual Studio that will help developers navigate their code.
writes(chnout, rec_1) writes(chnout, " ") writes(chnout, rec_2)
Now you want to add an error list to handle record locking on each line. Well, you can use ALT + SHIFT to add the identical error list to each line, which beats copying and pasting to each line.
writes(chnout, rec_1) [$ERR_LOCKED=errloc] writes(chnout, " ") [$ERR_LOCKED=errloc] writes(chnout, rec_2) [$ERR_LOCKED=errloc]
You may have noticed that when you create a main routine, subroutine, or function, a “-“ appears to the left of the editor. This allows you to collapse that code section to make it easier to edit large pieces of code.
.region "erroloc" errloc, repeat begin ... .endregion
With .REGION/.ENDREGION in place, you will now get the “-“ around that section that you can collapse.
Toggle outlining expansion – CTRL M + M
Toggle all outlining – CRTL M + L
Stop outlining – CRTL M + P
Stop hiding current – CRTL M + U
Collapse to definitions – CTRL M + O
There are also a few features that can be used to navigate your code that I find extremely helpful:
To round off this list, there are a number of function keys that are useful during a debugging session in Visual Studio:
Those are my 10 tips for navigating through Visual Studio and making use of its code editing and hotkey features. You can also find our video about Visual Studio hotkeys here. Keep in mind that most of these keys can be changed or customized inside Visual Studio by selecting Options from the Tools drop-down menu. Hope you found some of these helpful.
If you haven’t moved your Synergy development environment to Visual Studio yet, what are you waiting for? Check out our solution for modernizing your development environment and accessing a superior debugging and build experience. You can also reach out to your account executive to discuss how we can help you move to Visual Studio or train your developers to get the most out of their new environment.