Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

VS code core command for output

Does a VS code have a core command to write to the Output section?

For instance, there are the commands cursorLeftSelect, editor.action.clipboardCutAction, cursorRight, editor.action.clipboardPasteAction, and, of course, the type command to type. Is there a command to write to output?enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Yes, look at the window.createOutputChannel("find-and-transform"); command. You can put anything you want where the find-and-transform appears above.

yourOutputChannel.appendLine(`\n${ jsOPError.stack }\n`);
yourOutputChannel.show(false);  // the false here will focus the output panel and this outputChannel within it
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading