Vis­ual Stu­dio code power tips

Linux User & Developer - - Tutorial -

If you’re a Vis­ual Stu­dio Code user, we have a few tips for you on how to make the most of the ed­i­tor. Our first tip in­volves the com­mand pal­ette. Think of it as ‘ter­mi­nal just for Code’ – it en­ables you to ac­cess var­i­ous com­mands just by typ­ing them out, which is, of course, far quicker than us­ing the mouse. To open the pal­ette, use ctrl+Shift+P. Just start typ­ing to fil­ter a list of com­mands.

An­other fea­ture that will be fa­mil­iar to users of full-fat IDEs is ‘Go to def­i­ni­tion’. This is sup­ported in Code too. Sim­ply high­light a vari­able or method and press F12 to jump to the def­i­ni­tion, or alt+F12 to peek rather than jump. One of our favourite Vis­ual Stu­dio Code fea­tures is the abil­ity to edit mul­ti­ple lines at once, en­abled with the use of mul­ti­ple cur­sors. Hold alt and click on ad­di­tional lo­ca­tions to cre­ate ex­tra cur­sors and then go ahead and make your changes. The fea­ture is in­cred­i­bly pow­er­ful.

above Use the Atom plug-ins site to add ad­di­tional func­tion­al­ity for the Ed­i­tor; themes can also be down­loaded and in­stalled

Newspapers in English

Newspapers from UK

© PressReader. All rights reserved.