
Shortcuts: ⌘Enter (below), ⇧⌘Enter (above)


Instead of selecting lines, cutting, clicking to reposition the cursor, and pasting, you can move the current line or selected lines directly. These are the default shortcuts on macOS on Windows, use Ctrl instead of ⌘, and Alt instead of ⌥. Here are some of the most useful keyboard shortcuts to know when editing Go code. The symbols on your keyboard may be slightly different, but you'll figure it out. VS Code uses various modifier keys, and I'll refer to them using the (Mac-specific) symbols that VS Code itself uses in its documentation: Instead, learn yourself some keyboard superpowers, for great justice. Sure, you can do everything by pointing and clicking with the mouse, but that's slow, and experienced programmers tend to avoid unnecessary mousing. The first thing to master in VS Code is the basics of typing text, editing it, and moving it around. Let’s cape up and take a tour of the seven superpowers of VS Code for Gophers. With the Go extension installed, it's the perfect accessory for a Go superhero. Visual Studio Code is the most popular Go editor, and no wonder: it’s the Batman’s utility belt of editors. But assuming you have those, a few well-chosen tools can really help you a lot. All you need is intelligence, dedication, and a keen sense of justice.

Not all superheroes wear capes, and you don't need any fancy accessories to be one, either. JOKER: Where does he get those wonderful toys?
