Home>Article>Development Tools> 9 Tips for Using VSCode Effectively

9 Tips for Using VSCode Effectively

青灯夜游
青灯夜游 forward
2019-11-30 15:29:22 2790browse

in the open source ide market, visual studio code (vscode for short) has become more and popular in recent years. since its release 2015, according to a 2018 stack overflow survey report, 35% of developers have switched using vscode. i will introduce some suggestions techniques make you use vscode efficiently. < p>

9 Tips for Using VSCode Effectively<

git gitlens< strong>< h3> title="1575098778304259 Tips for Using VSCode Effectively"

git< a> it can be said that the most software among developers, operating git directly from is much easier than through command line. modules help perform operations such as stage, commit, stash, undo. gitlens< plugins provide possibilities. useful feature gitlens see commit history each line code. >live share<

##vscode live share an experimental feature. official website says this: a><

no matter what type application build, language program, or system use, when need collaborate, real-time sharing instantly connect your project with teammates. shared. teammates edit debug real time without cloning repository setting up environment.

< blockquote>

through share, together, also share audio, servers, terminals, differences, comments, etc. whether you're conducting code reviews, pair programming teammates, participating hackathon, delivering interactive lectures, share support variety writing styles. >json code< strong> p>have ever experienced, faced api, data want it return? can structure definition, but don't define manually?

paste json codebatch rename< p>when maintaining code, refactoring indispensable, especially refactor very large when there module piece headache find modify variable function names by one. fortunately, us. p>if select method name then press f2, selected all related instances entire modified. only current file, command f2 (mac) ctrl (windows). >jump definition< method, often forgets reference meaning generation. what do at this time? take several minutes search locate correct location. in vscode, command(mac) ctrl(windows) click corresponding name, automatically jump alternatively, place cursor on pop next cursor. this saves trouble jumping other locations. >multi-line editing< insert delete multiple same text, create multi-cursor (multiple cursor). hold down option alt (windows) key, click, stop each creates new cursor, these positions edited simultaneously. html, change class hyperlink appears places. >debugger< h3>debugger itself lot content, dedicated video introduction. p>youtube address:

vscode debugging node.jsbind shortcut keys<

#if work efficiently, commonly used commands keys. quickly view core >cheat sheet a>"view key bindings".

the console best friend, p it. enter specified file. faster searching slowly directory left.

● enter >< code> available tasks use @< symbol get symbols (variables functions) etc.)< >custom binding

there missing "save all". we customize one: shift s

recommended tutorial: >vscode basic tutorial< p>

The above is the detailed content of 9 Tips for Using VSCode Effectively. For more information, please follow other related articles on the PHP Chinese website!

in>

Statement:
This article is reproduced at:cnblogs.com. If there is any infringement, please contact admin@php.cn delete