In VB Classic, VBA and also in Visual Studio you can dbl click close to the left hand margin of a block of code and it will select the whole of the current block (sub, function etc). In Visual Studio this clickable area is adjacent to the line numbers on the left.
Is there a keyboard shortcut that will do the same job? that is, select the "current block".
Visual Studio for Mac makes it straightforward to select, cut, copy, and paste sections of your code. Rectangular blocks of code can be highlighted and selected by using the Option + Drag command on the code block.
Shift + End = Select the entire line from start to end. Shift + Home = Select the entire line from end to start.
Edit.SelectionCancel. Surround with. Ctrl+K, Ctrl+S. (available only in Visual Studio 2019 and earlier)
CTRL+SHIFT+B to Build The built-in Microsoft visual studio means compile and connect only the root files that have been modified since the previous build.
Using ReSharper, repeatly press Ctrl-w
it'll quickly select the desired scope.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With