Ask Your Question
1

How can I modify the double-click action in vscode editor in order to expand the selected text area?

asked 2022-02-14 11:00:00 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-09-28 08:00:00 +0000

huitzilopochtli gravatar image

To modify the double-click action in vscode editor to expand the selected text area, you can follow these steps:

  1. Open VS Code editor.

  2. Go to the "File" menu and click on "Preferences" -> "Keyboard Shortcuts".

  3. In the "Search Keybindings" field, type "editor.action.smartSelect.grow".

  4. Once the search results appear, click on the "+" icon next to the "editor.action.smartSelect.grow" option.

  5. In the pop-up box, press the "Double Click" key combination (usually left mouse button).

  6. Click the "Add" button to assign the shortcut.

  7. Now, whenever you double-click on a word in the editor, the selected area will be expanded to include the surrounding text.

You can also modify the expansion behavior by going to "File" -> "Preferences" -> "Settings" and searching for "cursorWordNavigation". There you can specify how many characters should be selected, what types of characters constitute a "word", and whether to include or exclude whitespace.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-02-14 11:00:00 +0000

Seen: 9 times

Last updated: Sep 28 '21