Keyboard Shortcut For Commenting In Visual Studio Mac

As a consultant, I spent most of my time developing with Microsoft technologies for almost 20 years. I have loved Visual Studio (Interdev at one time) as my coding environment. Lately, I have been using a MacBook Pro to do some cross platform development, but never really found anything that fit well for what I was trying to do. Sure, TextMate was probably my best option…I just didn’t spend enough time in it to care to tweak it to my needs.

Keyboard shortcut for commenting in visual studio mac tutorial

⌘K ⌘C ⌃⇧Add line comment ⌘K ⌘U Remove line comment ⌘/ ⌃⇧Toggle line comment ⇧⌥A Toggle block comment ⌥Z Editor Toggle word wrap. Other operating systems’ keyboard shortcuts and additional unassigned shortcuts available at aka.ms/vscodekeybindings for macOS. Visual Studio Code – Keyboard Shortcuts on Mac Here’s a list of shortcuts that I found extremely useful when working with Visual Studio Code on Mac. Hope this is useful for people that needs it out there.

In April, Microsoft released Visual Studio Code as part of its //Build conference. I have been using it on my MBP for most of the coding I do on the Mac. I found a number of things I really like…particularly doing Node and JavaScript development. Best part is that it is cross platform, so I can run it on my Mac, Linux and Windows machines, and I have the same editing experience. With Git support built in out of the box, what more could I ask for? Well, here are the things I find save me the most time.

When you are creating a website that is going to be using dynamic content (or just creating a demo), and you don’t quite have access to what that content is yet…what do you do? You fake it. You put in dummy text, and dummy images. Microsoft Word has the feature of using “=rand(10,10)” to generate random content, but that doesn’t help me in my code editor. The focus is on the design, not the content. But running your fingers around on the keyboard for random text is kind of a waste of time and it doesn’t really yield result that shows “for placement only” type look. Besides, you need tags in there to get what you really wanted.

Here’s where Emmet abbreviations come in handy. A simple:

This will get you four paragraphs of random length “lorem ipsum” text. You know good ol’ Lorem right? You can always look here if you need a history lesson on filler texts and the like. This can get more complex by chaining them together. For example:

That will produce five <li> tags with three <paragraph class=”item”> tags containing a random ten word text. Like so:

Uncomment Shortcut Visual Studio