1

create code fences with backticks ` or tildes ~

like so

add language identifier to highlight code

def function(foo):
    print(foo)

put returns between paragraphs for linebreak add 2 spaces at end italic or bold indent code by 4 spaces backtick escapes like _so_ quote by placing > at start of line to make links (use https whenever possible) https://example.com example example

8
  • With the mouse use <ctrl> to add the 2nd selection
    – DavidPostill
    Commented Feb 28, 2023 at 10:45
  • 1
    Looking at your tags, Visual Studio and Visual Studio Code are COMPLETELY different products that don't share a single line of source code. Which is it? Commented Feb 28, 2023 at 14:21
  • Thanks for the comment @SeñorCMasMas I meant VSCODE.
    – fatFeather
    Commented Feb 28, 2023 at 15:11
  • @DavidPostill Your suggestion does not work. I wish this was the option for me as this is the same as how I select separate not in range files in windows explorer.
    – fatFeather
    Commented Feb 28, 2023 at 15:13
  • 1
    Why exactly did you downvote my answer @Eyal Cohen? It does exactly what you want... Are you serious?
    – Destroy666
    Commented Mar 1, 2023 at 23:11

1 Answer 1

1

You can use Alt + LMB by default. See the documentation for more info

VS Code supports multiple cursors for fast simultaneous edits. You can add secondary cursors (rendered thinner) with Alt+Click. Each cursor operates independently based on the context it sits in. A common way to add more cursors is with Ctrl+Alt+Down or Ctrl+Alt+Up that insert cursors below or above.

If you'd like to change the modifier key for applying multiple cursors to Cmd+Click on macOS and Ctrl+Click on Windows and Linux, you can do so with the editor.multiCursorModifier setting. This lets users coming from other editors such as Sublime Text or Atom continue to use the keyboard modifier they are familiar with.

The setting can be set to:

ctrlCmd - Maps to Ctrl on Windows and Cmd on macOS.

alt - The existing default Alt.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .