Search code examples
visual-studiokeyboard-shortcuts

How to select and edit multiple word with same text in visual studio 2019?


In visual studio code you can select multiple words with same text using Ctrl+D. What is the equivalent keyboard shortcut on visual studio 2019. I've tried this but it copies a line under it. Here is an example:

cout << "hello world";
cout << "hello world";
cout << "hello world";

what will I have to do if I want to select all the couts only using keyboard shortcut. Thanks


Solution

  • You can press Alt+Shift+; to insert a caret at all places where the current word exists.

    See Multi-line and multi-cursor editing and Multi-caret selection for more details.