visual-studiosublimetext2

How to replicate SublimeText ctrl+D in Visual Studio


I am used to work with Sublime text and trying to switch for Visual Studio for bigger projects, one of the feature of sublime that I absolutely love is its multiple select feature. You can hit ctrl + d multiple times to select next instance of the same word and then rewrite them all at once. Is there anything like this in Visual studio? I tryed to find it, but with no success.

Btw I am using Visual Studio 2015.


Solution

  • Visual studio 2017-2022

    The default shortcut is Alt+Shift+.


    But if you want to add Ctrl+D

    At the top you'll find an option to add extra keybindings, select Visual Studio Code. Save and That's it! Setting

    This works because Visual Studio Code has Ctrl+D, and other shortcuts similar to SublimeText

    Alternatively you can manually add shortcuts

    In the image, you can find any command to customize in the middle section.

    The particular command you are interested is the one selected Edit.InsertNextMatchingCaret