Home > database >  Having trouble with vscode code completion for JavaScript
Having trouble with vscode code completion for JavaScript

Time:12-27

I am having trouble with JavaScript code completion in VS Code. For example, here I am trying to use process.std.write() but the code completion gives me other suggestions. enter image description here

I can not avoid this, even when I jsut try to write process with out the code completion, it will just change it to the first suggestion that came up. Why is this happening?

CodePudding user response:

it is a standard node module, you have to import/require it first.

and the function is called process.stdout.write

const process = require('process');

process.stdout.write();
  • Related