Return to site

Visual studio for mac preview collapse code

broken image
broken image

Second, I personally switch between keyboard layouts often: I use my native layout for everyday tasks, but for programming, I switch to an American layout. The search is clever and recognizes both “cmd” and “command”, “ctrl” and “control”, and “option” and “alt” (though not “opt”). So, for example, searching for “ctrl shift cmd right” shows me that that keyboard shortcut is bound to “Expand Selection”. There are a couple of things worth mentioning about the keyboard shortcut preferences: first, not only can you search for a command like “add cursor below” to find out what shortcut that command is bound to, you can also search for a key binding. The shortcuts listed here will be for macOS - naturally, they have Windows counterparts, and the keyboard shortcut preferences ( ⌘ + K ⌘ + S on Mac) will show what they are. That way, I hope you may get something out of this article even if you’re quite familiar with Visual Studio Code (VS Code from now on). Instead, I’ll try to describe which features I find most useful in my day-to-day work, and in what context.

broken image

While I don’t think there’s much in the way of prerequisite knowledge needed in order to get something out of this article, my aim is not to go over the basics of a code editor or to list every keyboard shortcut. This is not quite an introductory article.