Skip to content

Latest commit

 

History

History
68 lines (47 loc) · 2.74 KB

README.md

File metadata and controls

68 lines (47 loc) · 2.74 KB

dev-settings

Sometimes, we just leave out configurations that could certainly improve our Dev Experience, like some easy configurations on VSCode itself. This repository aims to share some settings and tools I think are extremely helpful.

Using Makefile

Makefile is useful for automating tasks, like creating a Python environment

Virtual environments

Miniconda is a great option

mkdir -p ~/miniconda3 \
    && wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh \
    && bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3 \
    && rm ~/miniconda3/miniconda.sh \
    && source ~/.bashrc

Currently, I'm using poetry as a package manager, and it is going great but looks like we have another great option now: uv

VSCode settings

settings.json

  • User - Settings that apply globally to any instance of VS Code you open.
  • Workspace - Settings stored inside your workspace and only apply when the workspace is opened.

Look at the .vscode/settings.json for the configurations

Warning

Workspace settings are specific to a project and override user settings.

alt text
Figure 1: With more indentation
alt text
Figure 2: Default value

Tree viewing in source control

Click the icon right next to SOURCE CONTROL

alt text
Figure 3: Changing the source control viewing by tree

VSCode extensions

Below is a list of useful extensions:

Miscellaneous

  • Use alt + ←,→ to move between words
  • Use ctrl + D to select the next occurrence of the selected word
  • Use ctrl + shift + L to select all occurrences of the selected word
  • Use the Column selection mode for selecting multiple lines at once