Open multiple Projects/Folders in Visual Studio Code
Not sure why the simplest solution is not mentioned. You can simply do File>New Window and open the other project in the new window.
Not sure why the simplest solution is not mentioned. You can simply do File>New Window and open the other project in the new window.
Why does Visual Studio Code ask for a password? Because Visual Studio Code runs the auto-fetch feature, while the Git server doesn’t have any information to authorize your identity. It happens when: Your Git repository has a https remote URL. Yes! This kind of remote will absolutely ask you every time. No exceptions here! (You … Read more
Open up the Source Control view, then click a changed file to open the comparison. Select the lines you want to stage. Click ‘…’ then Stage Selected Ranges.
Embedded Emmet could do the trick: Select text (optional) Open command palette (usually Ctrl+Shift+P) Execute Emmet: Wrap with Abbreviation Enter a tag div (or an abbreviation .wrapper>p) Hit Enter Command can be assigned to a keybinding. This thing even supports passing arguments: { “key”: “ctrl+shift+9”, “command”: “editor.emmet.action.wrapWithAbbreviation”, “when”: “editorHasSelection”, “args”: { “abbreviation”: “span”, }, }, … Read more
Click File > Preferences > Keyboard Shortcuts: Search for copyLinesDownAction or copyLinesUpAction in your keyboard shortcuts Usually it is SHIFT+ALT + ↓ Update for Ubuntu: It seems that Ubuntu is hiding that shortcut from being seen by VSCode (i.e. it uses it probably by its own). There is an issue about that on GitHub. In … Read more
I recommend you this repository, https://github.com/DonJayamanne/gitHistoryVSCode Git History It does exactly what you need and has these features: View the details of a commit, such as author name, email, date, committer name, email, date and comments. View a previous copy of the file or compare it against the local workspace version or a previous version. … Read more
Change editor split layout from horizontal to vertical In 1.20 ALT+SHIFT+0 PC (Windows, Linux) ⌘+⌥+0 Mac Pre-1.20 ALT+SHIFT+1 PC (Windows, Linux) ⌘+⌥+1 Mac In 1.25 You can split editor into Grid layout. Check View=>Editor Layout It is nicely presented in Release notes v1.25: VS Code grid editor layout In 1.58.2 ** ** Someone update this … Read more
In your settings (either user or workspace) there is a setting that you can tweak to hide anything you’d like: { “files.exclude”: { “**/.git”: true, “**/.DS_Store”: true } } So you can add in the following to hide .js and .js.map files “**/*.js”: true, “**/*.js.map”: true As this other answer explains, most people probably only … Read more
https://code.visualstudio.com/docs/customization/keybindings#_editorwindow-management For Windows: Ctrl+1, Ctrl+2 and Ctrl+3. For Mac: Cmd+1, Cmd+2 and Cmd+3. There is no circular switch between panes, similar to what Ctrl+tabs does for files, though.
2021 answer Here is the step by step guide: Install the GitLens extension: GitLens Then, Click on Source Control: Click on Search & Compare Click on Compare References Select the branches you want to compare: Now, You can select any file for which you want to see the diff from Search & Compare