Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99653

How to make VSCode to replace the word when accepting autocomplete hint?

$
0
0

JetBrains IDE platform have very useful feature, which I am using a lot and I find it a performance booster. When I have a word in editor, and I want to change or update that word, I do the following.

  • Place cursor in front of the word (or in middle, ex. when I want to change only last part.)
  • Start typing until I got autocomplete I want to use.
  • Press TAB or ENTER.
    • On TAB - Old word is completely replaced by new word. This is especially useful when I update some names, in which beginning of word is the same, but ending is different. For example, change getTimeInSeconds() to getTimeInMinutes() - I put cursor after getTimeIn, get autocomplete, and press TAB. Nothing left to delete, everything is replaced.
    • On ENTER - New word is replaced from the start of old word, but right part from the cursor stays on screen.

By default VSCode supports only "ENTER" use case. Does it support "TAB" use case? If so, how to enable it?


Viewing all articles
Browse latest Browse all 99653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>