There are lots of commands to expand and collapse regions of code however sometimes you might want to create a collapsible region around a block of code. It’s pretty neat! Collapse a block of code With Ctrl + Shift + V you can cycle through previous copies in your buffer and Visual Studio will even highlight them in your code as shown above. Once in a while you suddenly need something you pasted previously but you have already copied other lines of code in your buffer mean while. Ctrl + Shift + V and cycle through previous pastes You can disable it by going to Tools – Options – Text Editor – All Languages – General and then uncheck the box saying ‘Apply Cut or Copy commands to blank lines when there is no selection’. How many times did you try to copy something and then just as you are about to paste it by pressing Ctrl + V you accidentally press Ctrl + C and get a blank line in your buffer? Disable Copy of Empty LinesĪnother nice feature is the option to disable the possibility of copying blank lines. You can enable this feature by going to Tools – Options – Text Editor – All Languages – Scroll Bars or simply search in quick launch by pressing Ctrl + Q and typing ‘scroll bar’. It’s also possible to get a preview of the code in your current class by simply hovering over the scroll bar. I think it’s super awesome as it makes it easier to drag around in the code and is much faster. You might be familiar with the scroll bar code map already from other editors such as Sublime Text. You can scroll and actually make changes in the preview window as well! You get a very nice preview window just like below while still staying in the current class. With the Alt + F12 shorcut you are able to do just that.
However there are times where you’d wish you could just get a preview instead of going back to the definition.
Visual Studio 2013 Shortcuts & Tipsįirst of you’ll most likely be familiar with F12 shortcut already and navigate forth and back using F12 and Ctrl + – to go back. Some of these features have been present in VS 2013 for a while and some in earlier versions but I thought I’d share some of them with you anyways. In this post I’ll briefly highlight some cool features in Visual Studio that I think not all developers are familiar with as well as some tips.