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

449
Views
VS Code is replacing text

Whenever I try to type console.log, the moment I press the full stop, VS Code replaces that text with crossOriginIsolated. The only way for me to actually type console.log is to type .log then type console in front of it. I like having the suggestions but when I press full stop it just replaces whatever text I'm trying to type.

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

0

Place this in your 'settings.json' file :

"editor.acceptSuggestionOnCommitCharacter": false,

To open the 'settings.json' file:

  1. cmd + , or ctrl + ,
  2. List item
  3. scroll down until you see 'Files: Associations'
  4. Click on 'edit in settings.json' paste the code above and save.

Besides that, you can type log and press Enter. It will autocomplete console.log

about 4 years ago · Juan Pablo Isaza Report

0

This happens when you make a very specific typo while attempting to write console.log. Specifically, if you type consold or consolt. The D and T keys are both near the E key, so it's a plausible mistake to make.

The reason this occurs is that, when you type a non-existent symbol in vscode, it will attempt to auto-correct it by matching your with a real symbol that has all of those letters in that same order. This is a helpful rule often, especially for correcting missing-letter typos. For instance, "cosole" would autocorrect to "console" using this rule. There is exactly one valid JS symbol which has the letters c-o-n-s-o-l-d in that order and it's crossOriginIsolated:

enter image description here

There is unfortunately no way to disable just this one autocorrect suggestion by itself, but if you really feel you can't tolerate it, there is a more targeted solution than disabling autocorrect entirely. You can suppress this behavior by disabling autocorrect for variables only:

enter image description here

In my opinion, losing variable autocorrect is too great a price to pay to correct this behavior, so personally I've decided to just live with it.

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!