Useful Shortcuts

Interesting settings:

Merge conflicts

  1. Resolve Merge conflicts:
    1. Open the command palette
    2. git merge...
    3. select branch to merge from (make sure it is pulled or take the remote one)
    4. open merge editor

Git diff

  1. Local Git diff: There doesn't seem to be a command in the command palette for it. Don't use the terminal, viewing git diffs in it is trash.
    • click on the branch symbol in vs code
    • Click on Source Control/it is open by default
    • For local git diffs: The file should already be in changes. Just click on it
  2. Git diff with different branch
    • Install Gitlens plugin
    • command palette: Compare working tree with. Make sure the right branch is checked out.

Interactive Python Window

I removed the keybindings that execute one line with shift + enter so now it will execute the codeblock and move to the next codeblock.

Formatter

Just use black, don't think about it. Ignore anything like isort, it is not worth the hassle.