Skip to content
Back
Coding & Development Commands

Command Library

Coding & Development Commands

Developer-ready commands for Python, Git, terminals, VS Code, and common languages.

Python

Create a virtual environment

python -m venv venv

Creates an isolated Python environment.

Install dependencies

pip install -r requirements.txt

Installs all packages from a requirements file.

Run a Python script

python app.py

Executes a Python file.

List installed packages

python -m pip freeze

Shows installed Python packages and versions.

Git

Clone a repository

git clone <repo>

Downloads a remote repository locally.

Check repo status

git status

Shows modified, staged, and untracked files.

Stage all changes

git add .

Stages files ready for commit.

Create a commit

git commit -m "msg"

Saves staged changes with a message.

Push changes

git push origin main

Uploads local commits to the remote repo.

Create a branch

git checkout -b feature

Creates a new feature branch.

VS Code

Quick open file

Ctrl + P

Opens a file by name quickly.

Command palette

Ctrl + Shift + P

Access VS Code commands and settings.

Toggle sidebar

Ctrl + B

Shows or hides the left sidebar.

Toggle terminal

Ctrl + `

Opens or closes the integrated terminal.

Terminal & CLI

Print working directory

pwd

Shows the current directory path.

List files with details

ls -la

Views files, folders, and hidden items.

Search files recursively

grep -R "term" .

Finds text in files across a project.

Find files by pattern

find . -name "*.py"

Searches files matching a filename pattern.

Programming Languages

Python language runtime

python

Runs Python code and scripts.

Compile C source

gcc main.c -o app

Compiles a C file into an executable.

Compile C++ code

g++ main.cpp -o app

Builds a C++ executable.

Run JavaScript

node app.js

Executes a Node.js script.

Run Java class

java Main

Executes a compiled Java program.

MATLAB

Create a plot

plot(x, y)

Plots a graph from vectors x and y.

Create zero matrix

zeros(m, n)

Generates an m-by-n zero matrix.

Get matrix dimensions

size(A)

Returns the size of a matrix.

Clear figure

clf

Clears the current figure window.