Issue #48  (Customizing IntelliSense)03/22/23

Advertisement
Meco: An Inbox Designed for Reading NewslettersEnjoy your newsletters in a space built for mindful reading while giving your inbox space to breathe. It's easy to get set up and completely free!

Most developers probably make use of IntelliSense in their daily coding, which allows you to easily auto-complete your code as you type certain words, function names, etc.

I've mentioned a little bit about these features before, but let's look at a couple other ways to customize your IntelliSense features. First, search for "acceptSuggestion" in your settings and notice the two settings that appear.
 
Accept Suggestion on Commit Character in VS Code
 
The Accept Suggestion on Commit Character setting is a bit of a strange one. This allows you to autocomplete a suggestion by typing that language's commit character. In JavaScript, this would be a semi-colon. The problem with this is that it doesn't always work and there doesn't seem to be a way to change the commit character. This is on by default, but because it's not consistent in being triggered, it probably isn't the best way to use IntelliSense.

The other setting is for choosing whether to Accept Suggestions on Enter. By default you can use the TAB or ENTER keys to accept a suggestion via IntelliSense. If you find you'd rather not confuse the use of the enter key (which you'll obviously be using for new lines), then you can disable this.

You can also set this to "smart", which means VS Code will accept the suggestion only if a textual change is made. This is useful if you have finished typing the name of something that would normally be auto-suggested, then you press ENTER to go to the next line. If you're in the middle of typing the word, the ENTER key will auto-complete. But if you're at the end of typing the word, the ENTER key will create a new line. It's a subtle difference, and my explanation might be a bit confusing, but might help in your workflow. Feel free to try it out to see if you like the change.
 
Accept Suggestions on Enter in VS Code

Another one you might want to consider adjusting is the setting called editor.tabCompletion. This one is off by default but if you have Quick Suggestions enabled, you won't notice. Quick Suggestions are displayed in a drop-down as you type, so technically your TAB key will work for those.
 
Tab Completion in VS Code

However, with Quick Suggestions off, you can enable Tab Completion to allow you to use the TAB key to insert the best suggestion inline automatically, without seeing a list of suggestions. You can also continue to hit the TAB key to cycle through the different suggestions inline, again with no list visible. This might take some getting used to if you're accustomed to using the drop-down auto-complete, but it's an option to consider if you find the drop-down distracting or something.

Now on to this week's hand-picked links!

Quick Note: It helps these emails to be delivered if you add my email address to your contacts list. It also helps if you hit reply and say hi! This can prevent filters from getting a little finicky and sending certain issues straight to your spam folder.
 
 

VS Code Tools

Code GPT — Another option for adding ChatGPT to VS Code, with options to also incorporate other AI tools. See articles section below for a tutorial on this extension.

SynthWave '84 — A popular VS Code theme influenced by the music and the cover artwork of modern Synthwave bands like FM-84, Timecop 1983 and The Midnight.

Foam — A VS Code extension that's a knowledge base and note-taking extension with Markdown and Wikilinks support.

Code Spell Checker — A popular VS Code extension that adds a basic spell checker that works well with code and documents, to help catch common spelling errors while keeping the number of false positives low.

VS Code Articles

Set Up Code GPT In Visual Studio Code — This details how to install, configure, and use the Code GPT extension linked above in the tools section.

Comparing Files in Visual Studio Code — Everything you need to know about comparing files in VS Code including the different ways to select files for comparison and some tricks to get better diffs.

dailydevlinks — A carefully curated newsletter offering the latest industry trends, news, and resources for developers, designers, and makers. Always includes a good list of resources and tools.  Sponsor 

JetBrains Mono Font in VS Code — If you like the JetBrains Mono open-source font, this is a quick tip on installing it to use as your VS Code font (which of course would work for any font you want to use).
 
 

Best of the Rest

QueryStorm — Tech-friendly spreadsheets. Use modern SQL and .NET programming in Excel.

NeoVim Notebooks — A NeoVim setup powered by jupytext.vim, iron.nvim, and vim-textobj-hydrogen.

Learn Vim (the Smart Way) — A guide to learn Vim, for beginners and advanced users, that attempts to capture a learning process that other guides and tutorials on Vim are missing.


Suggestions?

If you have any link suggestions, including a tool, article, or other resources related to VS Code or another IDE, send it via DM on X: @LouisLazaris or just hit reply on this email.

That's it for this issue.

Happy VS Coding!
Louis
VSCode.Email
@LouisLazaris
Copyright © VSCode.Email. All rights reserved.

Not affiliated with Microsoft, Visual Studio Code, or any of its trademarks.