Visual Studio Code is one of the best code editors in this moment.
Its Palette has many features but probably not all devs know them.
Let’s look at...
For further actions, you may consider blocking this person and/or reporting abuse
“Visual Studio Code is one of the best code editors in this moment.”
I agree and have been using it since 2018. However, in that time, it has gotten more bloated and slower. Every month it seems yet another new feature is crammed into it (yet a feature request I follow has been languishing for five years now). I worry at some point it will be like current editions of Visual Studio that need almost the absolute latest CPU’s and a pile of memory to perform adequately. I have heard there is a forked lite version that uses less system resources and may try it at some point.
I hear you. However, vscode isn’t the main guilty in my opinion. The problems often are generated by the extensions, build not very well! I usually keep the number of extensions low to reduce this problem. Or try to detect which extension creates slowdowns!
Yes, extensions can be a massive contributor to resource usage. As I am primarily doing Node.js development, I have few extensions. In fact, I recently removed "Bracket Pair Colorizer 2", which had been a resource hog at one point until it was fixed, due to the functionality now being built-in to Code.
I have wonder how the version that comes out a year from now will compare in performance to this months version. As I mentioned, I recall how Visual Studio 2013 was slower than Visual Studio 2010 which itself was slower than Visual Studio 2008, 2005, 2003, etc. Visual Studio 2017 took forever to start up on hardware that ran 2013 adequately. Pretty much like iOS releases that force you to get new hardware every three years just to keep things running with reasonable speed.
I really like these Pallet shortcuts for finding files and symbols, and commands, thank you for sharing.
I just found that
#
at the start of the Pallet will search across files for a symbol (e.g. look for all the symbols matchingerror
in all the files in the project with#error
instead of@error
which limits to the currently focused file).I also use Shift-Command-F (Control-Shift-F in Linux/Windows) to search for patterns within files
Note quite related but I'm looking for a way to add 'pending' change set lists like in webstorm, where can create a new 'change list' in the source control view, and drag and drop modified files into this 'change list' to break down big change sets.
E.g. some files you changed only for set-up / testing and are not really part of the feature you want to commit/push
Does vscode have this feature or is there an extension out there that can do this?
dev-to-uploads.s3.amazonaws.com/up...
in my screen shot - is there a way to have instead of 'Changes' list additional lists where I drag files in/out of and give this list a name like - 'testing only - not for commit'
Also I am looking for this feature. Unfortunately so far I haven't found anything in vscode that does this.
Do you mean a visual interface to
git stash
/git pop
? VS Code has a Stashes section in the built-in Source Control view, and the Git: Stash / Git: Apply / Git: Pop / Git: Drop commands from the Pallet.I can't find a way to drag/drop modified / untracked files into Stashes
Or, do you mean to selectively stage some hunks of a change instead of an entire file (or files)? In the built-in diff view, select the changed lines and then right-click and choose Stage Selected Ranges.
I don't want to stash - I just want to organize my modified files into separate lists.
Currently, in VS Code, there is one only list called "Changes". I would like to add more lists (at least one more list) and drag modified files out of the "Changes" list and put them in another list that I can name (e.g. "do not commit these files").
Stage is sort of a solution to this but - I want to be able to name the list of un-staged and be able to make multiple such un-staged lists
This a built-in feature of webstorm.
The tip about searching partcular folders and subfolders is totally new to me and super useful. Thank you!
Hey nice content, thanks for sharing it🙏🏻!
VS Code can be hard for beginners, a couple of decades ago I was using "Brackets", then I moved to VS Code | WebStorm.
Nice article. I m a daily user of Vscode , till date for me it's works good, specially for Linux one of the best editor so far.
Great post! Some more useful VS Code tips, especially for Go programmers:
7 superpowers of VS Code and Go