VSCode tips: commit characters

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, whic…


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:

vscode-commit-chars

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


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » VSCode tips: commit characters." Siddharth | Sciencx - Tuesday May 4, 2021, https://www.scien.cx/2021/05/04/vscode-tips-commit-characters/
HARVARD
Siddharth | Sciencx Tuesday May 4, 2021 » VSCode tips: commit characters., viewed ,<https://www.scien.cx/2021/05/04/vscode-tips-commit-characters/>
VANCOUVER
Siddharth | Sciencx - » VSCode tips: commit characters. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/05/04/vscode-tips-commit-characters/
CHICAGO
" » VSCode tips: commit characters." Siddharth | Sciencx - Accessed . https://www.scien.cx/2021/05/04/vscode-tips-commit-characters/
IEEE
" » VSCode tips: commit characters." Siddharth | Sciencx [Online]. Available: https://www.scien.cx/2021/05/04/vscode-tips-commit-characters/. [Accessed: ]
rf:citation
» VSCode tips: commit characters | Siddharth | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.