This content originally appeared on DEV Community and was authored by Siddharth
VSCode is a really powerful editor, so powerful that there are a lot of features which we might never use. I want to highlight one of these tips here.
I'll show you this feature called commit characters. Commit characters are a set of characters, which are different for every language, which trigger autocomplete and add the character to the end of the autocompleted value.
In english: Commit characters are a bunch of characters which we use instead of enter when selecting an option from the autocomplete. What is special about these characters are that the commit character chosen will be added to the end of the autocompleted value.
If that doesn't make too much sense, don't worry, there's a gif coming up.
In Javascript, the commit characters are ";
", ".
", "(
" etc.
Here's how commit characters work:
It saves you that one extra keystroke which I think editors should autofill anyways.
Thanks for reading!
This content originally appeared on DEV Community and was authored by Siddharth
Siddharth | Sciencx (2021-05-04T09:36:41+00:00) VSCode tips: commit characters. Retrieved from https://www.scien.cx/2021/05/04/vscode-tips-commit-characters/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.