Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

229
Views
vscode Make snippet first choice when hitting tab

I wrote my own simple snippet for const in javascript:

const should trigger const ${1} = ${0};

and it works very well. However, when I enter const and the available options pop open in the menu, I do not get the snippet as a first, but as a second option which means I first need to go down one step with an arrow and then I can select it with tab.

I'm coming from vim where evert keystroke matters in terms of productivity and this is annoying me so much that I decided to write here no stackoverflow. Does anyone know how I can make it the first option if it matches the snippet?

Also, does anyone know what the first option actually means?

const Snippet vscode

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

In settings.json

{
    "typescript.useCodeSnippetsOnMethodSuggest": true,
    "editor.snippetSuggestions": "top",
    "editor.tabCompletion": true
}

By default, editor.snippetSuggestions is bottom so setting it to top wil show it at top.

Note: both standard and your custom snippets will be show in suggestion.if you want your snippet to go above the standard - you can change description so that it sorts at top.

You can see about it here(github link)

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!