Leuel Asfaw
Leuel Asfaw

Reputation: 339

Having trouble with vscode code completion for JavaScript

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?

Upvotes: 0

Views: 40

Answers (1)

rioV8
rioV8

Reputation: 28623

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();

Upvotes: 2

Related Questions