Quick Visual Studio tip: going to the batching brace with the Finnish keyboard

Posted: (EET/GMT+2)

 

Today's post is a quick tip for working with the Visual Studio code editor: to go to the matching brace, the official keyboard shortcut is Ctrl+] on the U.S. keyboard. But if you try to directly press this keyboard shortcut on a Finnish keyboard (the equivalent of which would be Ctrl+AltGr+9), it doesn't work.

Instead, you need to take the equivalent key on the Finnish keyboard, the Å key (the Swedish O). If you press Ctrl+Å on the Finnish keyboard, then you have the command to find the matching brace.

Here's how: if you have a C# code block starting with the curly brace { and you place the caret on the right of this character and then press the Ctrl+Å keyboard shortcut, the caret will move to the closing brace. The same command works with the parenthesis in function parameters, etc.