How to save myself typing using VSCode?

Hi there,

I want an expert opinion on how I can enable (somehow) a way to avoid typing repeated phrases using VSCode.

For example, when doing the challenges writing Javascript I find myself that I end up typically typing lots of console.log(‘stuff’);

is there a way to tell VSCode that if I type say ‘cl_’ to type for me ‘console.log();’ ?

I’d very much appreciate a lead on how to get this done, thank you for reading, have a pleasant day.

Check it out:

1 Like

log should be a shorthand for console.log() in VS Code (at least I don’t think I added that myself).

You can make code snippets yourself or look for extensions that add them (just search for code snippets in the extensions, e.g. JavaScript (ES6) code snippets).

1 Like