Skip to cheat sheets
Categories

Developer Cheat Sheets

Free, searchable quick references for 44 programming languages, frameworks, databases and developer tools. Each one groups the syntax and commands you look up most, with copy-ready examples and the versions it covers.

By Bogdan SanduUpdated

Programming Languages

Syntax, data types, collections, error handling and the standard library for 15 languages, from Python and JavaScript to Rust, Go and Lua.

  • Python Cheat Sheet

    Data types, strings, comprehensions, classes, file I/O, async/await and regular expressions in one searchable page.

    Comprehensions, Classes and OOP, Async / await

    Updated

  • JavaScript Cheat Sheet

    Variables, functions, arrays, objects, promises, DOM manipulation and the ES6+ features you use daily.

    Promises, DOM, ES6+

    Updated

  • TypeScript Cheat Sheet

    Types, interfaces, generics, utility types, narrowing, decorators and tsconfig options.

    Generics, Utility types, Narrowing

    Updated

  • Java Cheat Sheet

    Primitives, OOP, the Collections Framework, streams, lambdas, exceptions and file I/O with java.nio.

    Collections, Streams, Lambdas

    Updated

  • Kotlin Cheat Sheet

    Syntax, functions, classes, collections, coroutines, scope functions and generics for Android and the JVM.

    Coroutines, Scope functions, Collections

    Updated

  • Swift Cheat Sheet

    Optionals, closures, protocols, generics, error handling, async/await, actors and SwiftUI for iOS work.

    Optionals, Protocols, async / actors

    Updated

  • C Programming Cheat Sheet

    Pointers, memory management, strings, structs, the preprocessor, printf formats, gcc flags and C23 changes.

    Pointers, Dynamic memory, gcc flags

    C23 Updated

  • C++ Cheat Sheet

    Syntax, pointers and memory, the STL, templates, concurrency and modern C++, with the C++ standard noted on each example.

    STL containers, Templates, Modern C++

    Updated

  • C# Cheat Sheet

    Syntax, pattern matching, records, LINQ, async, ASP.NET Core, EF Core and testing, with 358 snippets.

    LINQ, Records, ASP.NET Core

    C# 14, .NET 10 Updated

  • Go Cheat Sheet

    Slices, maps, structs, interfaces, generics, errors, goroutines, channels, net/http and testing.

    Goroutines, Interfaces, Generics

    Go 1.27 Updated

  • Rust Cheat Sheet

    Ownership, borrowing, lifetimes, traits, iterators, error handling, smart pointers, async and cargo.

    Ownership, Traits, Lifetimes

    Updated

  • Ruby Cheat Sheet

    Data types, strings, arrays, hashes, blocks, classes, modules and mixins, with version tags per snippet.

    Blocks, Hashes, Mixins

    Updated

  • PHP Cheat Sheet

    592 snippets from syntax and arrays to OOP, PDO, requests, security and testing, with the PHP version noted on newer features.

    Arrays, OOP, PDO

    Updated

  • R Cheat Sheet

    748 snippets across base R, dplyr, tidyr, ggplot2 and data.table, from data import to modelling.

    dplyr, ggplot2, data.table

    Updated

  • Lua Cheat Sheet

    Tables, strings, patterns, metatables, OOP, coroutines, modules, LuaJIT and Neovim configuration.

    Tables, Metatables, Coroutines

    Lua 5.5 Updated

  • Perl Cheat Sheet

    Syntax, arrays, hashes, references, regex, files, one-liners, signatures, try/catch and the class feature.

    Regex, One-liners, Signatures

    Perl 5.44 Updated

Web and Front-End

Markup, styling, Tailwind and two major front-end frameworks. Useful when you build interfaces and keep forgetting a selector, a utility class or a hook signature.

  • HTML Cheat Sheet

    Document structure, text and list tags, forms and input types, semantic elements, media and meta tags.

    Forms, Semantic tags, Meta tags

    Updated

  • CSS Cheat Sheet

    Selectors, the box model, units, flexbox, grid, transitions, animations and custom properties in 17 categories.

    Flexbox, Grid, Variables

    Updated

  • Tailwind CSS Cheat Sheet

    Utility classes for layout, flexbox, grid, spacing, typography, colors and state variants.

    Layout, Spacing, Variants

    v3 and v4 Updated

  • React Cheat Sheet

    JSX, props, state, built-in hooks, Context API, forms, routing and performance patterns.

    Hooks, Context API, Router

    Updated

  • Angular Cheat Sheet

    526 snippets for signals, control flow, signal forms, routing, dependency injection, RxJS and the CLI.

    Signals, Routing, RxJS

    Angular 22 Updated

Back-End Frameworks

Routing, ORM queries, validation, auth and CLI commands for three widely used back-end frameworks in Python, PHP and Java.

  • Django Cheat Sheet

    Models, QuerySets, views, templates, forms, admin, auth, Django REST Framework, testing and deployment.

    ORM and QuerySets, Admin, DRF

    5.2 LTS, 6.0, 6.1 Updated

  • Laravel Cheat Sheet

    Routing, Eloquent, Blade, Livewire, validation, queues, Sanctum and Artisan, in 305 snippets.

    Eloquent, Blade, Artisan

    Laravel 13 Updated

  • Spring Boot Cheat Sheet

    Properties, profiles, REST controllers, validation, problem details, JPA, security, Actuator and testing.

    Configuration, Data JPA, Actuator

    Spring Boot 4 Updated

  • Flask Cheat Sheet

    Routing, requests, responses, Jinja templates, blueprints, config, sessions, SQLAlchemy, login, APIs, testing and deployment.

    Routing, Blueprints, SQLAlchemy

    Flask 3.1 Updated

Databases and SQL

Standard SQL plus the client commands, data types and admin tasks of each major database engine, relational and document.

  • SQL Cheat Sheet

    Queries, filters, joins, aggregates, window functions, CTEs, DDL, transactions and indexes, for Standard SQL, MySQL and PostgreSQL.

    Joins, Window functions, CTEs

    Updated

  • MySQL Cheat Sheet

    Client commands, data types, joins, indexes, EXPLAIN, users, backups and replication, plus a SQL formatter.

    Indexes, EXPLAIN, Replication

    8.4 and 9.7 Updated

  • PostgreSQL Cheat Sheet

    psql commands, queries, JSONB, indexes, EXPLAIN, VACUUM, roles, pg_dump and replication.

    psql, JSONB, VACUUM

    14 to 18 Updated

  • SQLite Cheat Sheet

    sqlite3 shell commands, PRAGMAs, upserts, dates, JSON, FTS5, indexes and WAL mode, plus a SQL playground.

    PRAGMAs, FTS5, WAL

    3.37 to 3.53 Updated

  • MongoDB Cheat Sheet

    mongosh commands, query and update operators, aggregation pipelines, indexes, transactions and sharding.

    Aggregation, Operators, Indexes

    7.0 to 9.0 Updated

APIs and Data Formats

How data moves between services: REST and GraphQL conventions, every HTTP status code, and the JSON, YAML and XML formats your configs and payloads are written in.

  • REST API Cheat Sheet

    Methods, URL design, status codes, errors, pagination, auth and JWT, CORS, versioning and OpenAPI 3.2.

    URL design, Pagination, OpenAPI

    Updated

  • GraphQL Cheat Sheet

    Queries, variables, fragments, mutations, schema types, errors, pagination, DataLoader and security.

    Queries, Schema / SDL, Pagination

    Updated

  • HTTP Status Codes Cheat Sheet

    Every code from 1xx to 5xx explained, which code to return, redirects, 429 and 5xx fixes, plus a response checker.

    4xx errors, Redirects, 5xx fixes

    Updated

  • JSON Cheat Sheet

    Syntax, data types, parsing in JavaScript, Python, PHP, Java, C#, Go and more, jq, JSON Schema and a validator.

    jq, JSON Schema, Validator

    Updated

  • YAML Cheat Sheet

    Scalars, mappings, sequences, anchors and aliases, multi-line strings, common errors and YAML vs JSON.

    Anchors, Multi-line strings, Common errors

    Updated

  • XML Cheat Sheet

    Syntax, escaping, namespaces, XPath, XSLT, XSD schemas and XXE security, plus an XPath tester and formatter.

    XPath, XSLT, XSD

    Updated

DevOps and Command Line

Terminal, version control and containers: the commands you run every day in a shell, a repository or a cluster.

  • Bash Cheat Sheet

    Variables, operators, control flow, functions, I/O, file and process commands, string operations and shortcuts.

    Scripting, Process control, Shortcuts

    Updated

  • Git Cheat Sheet

    Setup, staging, committing, branching, merging and rebasing, remotes, stash, tags and undoing mistakes.

    Branching, Rebasing, Undoing changes

    Updated

  • Docker Cheat Sheet

    Container, image, volume and network commands, Dockerfile syntax, Compose, Swarm and security practices.

    Containers, Dockerfile, Compose

    Updated

  • Kubernetes Cheat Sheet

    kubectl commands for pods, deployments, services, ConfigMaps, secrets and volumes, plus YAML manifests and debugging.

    kubectl, Deployments, Debugging

    Updated

  • Linux Commands Cheat Sheet

    Files, find, grep, sed, awk, permissions, tar, processes, systemd, networking, SSH, cron and common errors.

    grep and sed, Permissions, SSH

    Updated

  • tmux Cheat Sheet

    Every default shortcut, sessions, windows, panes, floating panes, copy mode, tmux.conf, status bar and hooks.

    Shortcuts, Panes, tmux.conf

    tmux 3.8 Updated

Mobile Development

Android debugging from the command line and a full checklist for getting an app approved on both stores. For the languages, see the Kotlin and Swift sheets.

  • ADB Commands Cheat Sheet

    Install ADB, connect devices over USB or Wi-Fi, install APKs, pull logs, control input and fix common errors.

    Device connection, logcat, APK install

    Updated

  • App Store and Google Play Submission Checklist

    Accounts, technical requirements, assets and metadata, privacy disclosures, age ratings, review times and rejection reasons.

    Store assets, Privacy labels, Rejections

    Updated

Editors and Text Tools

Shortcuts and workflows for VS Code and Notepad++, plus regular expressions and Markdown, which you end up using in every editor.

  • VS Code Workflow Cheat Sheet

    Keyboard shortcuts by task for editing, navigation, search, terminal, Python, Git and debugging, with Windows and macOS keys side by side.

    Shortcuts, Terminal, Debugging

    Updated

  • Notepad++ Cheat Sheet

    Shortcuts, menu commands, column mode, macros, plugins, file comparison and regex search.

    Shortcuts, Column mode, Macros

    Updated

  • RegEx Cheat Sheet

    Anchors, character classes, quantifiers, groups, lookarounds and flags, with common patterns and a live match tester.

    Lookarounds, Groups, Live tester

    Updated

  • Markdown Cheat Sheet

    Basic and extended syntax, tables, code blocks, links and images, escaping and flavor differences, with live preview.

    Tables, Code blocks, Flavors

    Updated

  • Vim Cheat Sheet

    Modes, motions, text objects, search and replace, registers, macros, splits, vimrc and Neovim's init.lua.

    Motions, Macros, vimrc

    Vim 9.2 Updated

Learning paths

Not sure which sheet to open first? These sequences follow the order most developers pick up each stack, so every step builds on the one before it.

Front-end developer

From static markup to a typed, component-based app.

  1. HTML
  2. CSS
  3. JavaScript
  4. TypeScript
  5. React

Python back-end

A Python web API from the language basics to a containerized database app.

  1. Python
  2. Django
  3. PostgreSQL
  4. REST API
  5. Docker

PHP and Laravel

A common stack for PHP web apps, from the language to the database and version control.

  1. PHP
  2. Laravel
  3. MySQL
  4. Git

Mobile apps

Write the app, debug it on a device, then ship it to both stores.

  1. Kotlin
  2. Swift
  3. ADB Commands
  4. App Store and Google Play Submission

DevOps basics

The shell, version control and containers, in the order most teams adopt them.

  1. Bash
  2. Git
  3. YAML
  4. Docker
  5. Kubernetes

Free developer tools

Format, validate and convert data in the browser. Nothing to install, and your input is processed on the page. The developer tools page lists all 24 tools, including JSON, HTML, CSS and JavaScript minifiers, with a picker that tells you which one to use.

Step-by-step guides

When a one-line reference isn’t enough, these walkthroughs from the TMS blog cover the tasks our readers look up most often.

How to use these cheat sheets

Each sheet covers one language, framework or tool and is split into sections, so you can jump straight to strings, joins, routing or whatever you came for. Every sheet also has its own search box, and sheets that cover several versions have a version picker that narrows the page down to what yours can run.

The sheets are references, not tutorials. They assume you know what you’re trying to do and just need the exact syntax, flag or command. For a fuller explanation, the step-by-step guides above go through common tasks one at a time.

  • Find a sheet fast. Press / anywhere on this page, type a name such as postgres, k8s or golang, then open the result.
  • Check the version. Cards list the versions a sheet covers where it matters, for example Angular 22 or MySQL 8.4 and 9.7.
  • Copy, don’t retype. Use the copy buttons inside each sheet to paste examples straight into your editor.
  • Bookmark this page. It’s the one index that links to every sheet and tool.

Frequently asked questions

Are these developer cheat sheets free?

Yes. All 49 cheat sheets and the 24 developer tools on tms-outsource.com are free, and you don’t need an account or an email address to read or use them.

What is a developer cheat sheet?

A developer cheat sheet is a condensed reference for one language, framework or tool. It groups the syntax, commands and patterns you need often but don’t always remember, so you can find them in seconds instead of searching the full documentation.

How up to date are the cheat sheets?

Every card on this page shows the date its cheat sheet was last updated, and many sheets state the versions they cover, such as Angular 22, Laravel 13, Spring Boot 4, Go 1.27 and PostgreSQL 14 to 18. Sort the list by “Recently updated” to see the newest ones first.

Can I copy the code examples?

Yes. Every sheet has a copy button on each snippet and its own search box, and sheets that cover several versions let you pick yours.

Which cheat sheet should I start with?

If you are learning a stack, follow one of the learning paths on this page in order. If you already know what you need, press the / key, type a language, tool or command, and open the matching sheet.

Who writes and maintains these cheat sheets?

They are written and maintained by Bogdan Sandu and published by TMS Outsource, a custom software development company with engineering offices in Belgrade and Bucharest.

About the publisher

These cheat sheets are written and maintained by Bogdan Sandu and published by TMS Outsource, a custom software development company founded in 2014, with engineering offices in Belgrade and Bucharest. If you need a team to build or extend a web or mobile product, see our software development services or get in touch.

Stay sharp. Ship better code.

Every week: one curated article, one tool worth knowing, one tip you can use tomorrow. No noise, no padding.