A fast, lightweight code editor for practice: write, run and judge C, C++, Java, Python, JavaScript, Go, Rust, Kotlin, C# and SQL with one key.
Install »
Releases
·
Report Bug
·
Request Feature
Install on Windows in one line: open PowerShell (Win, type powershell, Enter) and paste:
irm https://raw.githubusercontent.com/rohithprem18/NppDev/main/install.ps1 | iexUbuntu: paste into a terminal:
curl -fsSL https://raw.githubusercontent.com/rohithprem18/NppDev/main/install.sh | bashBoth install the latest release, verified against GitHub's SHA-256. Run again to update.
Table of Contents
NppDev is a desktop editor made for solving problems: open a file, type the input, press Ctrl+Enter and see the output next to the code, checked against the expected answer like an online judge. It starts in a moment, uses little memory, and stays out of the way.
- Run with one key. Ctrl+Enter compiles (only when the code changed) and runs the file. The panel on the right has three boxes, like an online compiler: Input, Output and an optional Expected output.
- Judge verdicts. Accepted, Wrong Answer (the differing lines are marked), Runtime Error (with the reason, e.g. a bad pointer or stack overflow), Time Limit Exceeded, Memory Limit Exceeded or the compiler's message, with the time and memory the program used. Time and memory limits are yours to set.
- SQL with a built-in database. A new
.sqlfile runs on NppDev's sample database (employees, departments, customers, orders, products, students and more) with nothing to install. It works like a real database: what your queries change stays changed for the next run, and Reset database brings back the original data. Results print as tables; the tables and their columns are listed next to your query, and clicking one opens the whole database in a tab, with every row, column type and key. - IntelliSense. Completions, errors as you type, go to definition and rename, from clangd (C/C++), pylsp (Python) and jdtls (Java); JavaScript and TypeScript are built in.
- Command Palette and Quick Open. Ctrl+Shift+P for any command, Ctrl+P for any file in the folder.
- Snippets for competitive programming (
cp,fori,dsu,segtree,dijkstra, ...), plus your own. - Auto save. Files save themselves a second after you stop typing (you can turn it off in Settings).
- Settings (Ctrl+,): dark or light theme, editor font and size, auto save, update check, and a Languages list that shows which compilers and language servers work, with one-click installs.
- Updates ask first. When a new release is out, NppDev shows a box: Update now, Skip this version, or Later.
- Fits into Windows. Start menu entry, "Open with NppDev" on files and folders in File Explorer, one window for everything you open.
- Small. One 7.5 MB program; your projects are never changed by NppDev's settings or tests.
Paste into PowerShell:
irm https://raw.githubusercontent.com/rohithprem18/NppDev/main/install.ps1 | iexIt downloads NppDev.exe from the latest release, checks it against the SHA-256 GitHub publishes, installs it to %LOCALAPPDATA%\Programs\NppDev, and adds NppDev to the Start menu and to "Open with" in File Explorer. Run it again to update, or let NppDev ask you when a new version is out. To remove NppDev, use Settings > Apps.
To keep NppDev on the taskbar, right-click its taskbar icon and choose Pin to taskbar.
Paste into a terminal:
curl -fsSL https://raw.githubusercontent.com/rohithprem18/NppDev/main/install.sh | bashIt downloads the .deb from the latest release, checks it against GitHub's SHA-256 and installs it with apt (it asks for your password once). Run it again to update; remove NppDev with sudo apt remove npp-dev. There's also an .AppImage on the releases page.
NppDev uses the compilers on your computer. Settings > Languages shows which ones it found and installs the missing ones: on Windows through winget (GCC, Java, Python, Node.js, Go, Rust, clangd), and directly for Kotlin, Java IntelliSense (jdtls) and Python IntelliSense (pylsp). On Ubuntu it shows the apt command to run.
- Open a folder (Ctrl+Shift+O) and pick or create a file.
- Type the input in the Input box on the right. Add the Expected output if you want it checked.
- Press Ctrl+Enter. The Output box shows what the program printed, the verdict, the time and the memory.
Each file keeps its own Input and Expected output, so switching between problems is instant.
SQL: create a file ending in .sql and press Ctrl+Enter. Instead of the Input box, the panel lists the sample database's tables and columns. Click a table name to open the sample.db tab (all rows, with each column's type, primary and foreign keys, and the CREATE TABLE statement under Structure), or Insert to add SELECT * FROM it to your file. The Command Palette has SQL: Open Sample Database too. Table and column names also show up as you type (employees. lists its columns).
| Language | Runs with | IntelliSense |
|---|---|---|
| C, C++ | GCC (C++17, or C++20 when the code needs it; bits/stdc++.h precompiled) |
clangd |
| Java | JDK 17 or newer | jdtls (JDK 21 or newer) |
| Python | Python 3 | pylsp |
| JavaScript | Node.js, with next(), nextInt(), readline() and print() for reading input |
built in |
| Go | Go | |
| Rust | rustc | |
| Kotlin | kotlinc | |
| C# | csc (Windows) or mcs (Linux) | |
| SQL | built in (SQLite), on a sample database | table and column names |
| Action | Keys |
|---|---|
| Run | Ctrl+Enter or F5 |
| Show or hide Input / Output | Ctrl+Shift+B |
| Quick Open a file | Ctrl+P |
| Command Palette | Ctrl+Shift+P or F1 |
| Settings | Ctrl+, |
| New file / Open folder | Ctrl+N / Ctrl+Shift+O |
| Save / Save as | Ctrl+S / Ctrl+Shift+S |
| Close tab / Next tab | Ctrl+W / Ctrl+Tab |
| Show or hide the Explorer | Ctrl+B |
| Font size | Ctrl+= / Ctrl+- / Ctrl+0 |
Editing (the same keys as VS Code):
| Action | Keys |
|---|---|
| Move line up / down | Alt+↑ / Alt+↓ |
| Duplicate line | Shift+Alt+↓ |
| Delete line | Ctrl+Shift+K |
| Toggle comment | Ctrl+/ |
| Select next match / all matches | Ctrl+D / Ctrl+Shift+L |
| Add cursor above / below | Ctrl+Alt+↑ / Ctrl+Alt+↓ (or Alt+click) |
| Find / Replace | Ctrl+F / Ctrl+H |
| Go to line | Ctrl+G |
| Suggestions / parameter hints | Ctrl+Space / Ctrl+Shift+Space |
| Go to definition / find references | F12 / Shift+F12 |
| Rename / next error | F2 / F8 |
| Format document | Shift+Alt+F |
| Fold / unfold | Ctrl+Shift+[ / Ctrl+Shift+] |
| Expand selection / jump to bracket | Shift+Alt+→ / Ctrl+Shift+</kbd> |
NppDev is a Tauri 2 app: Rust for the judge, files and language servers; React, TypeScript and the Monaco editor for the window.
You need Node.js 20+, Rust (stable) and, on Ubuntu, Tauri's system libraries (libwebkit2gtk-4.1-dev and friends; see .github/workflows/linux.yml).
npm ci
npx tauri dev # run it while you work on it
npx tauri build --no-bundle # Windows: src-tauri/target/release/nppdev.exe
npx tauri build --bundles deb,appimage # Ubuntu packages
cargo test --manifest-path src-tauri/Cargo.toml --lib -- --test-threads=1 # judge testsThe judge tests compile and run real programs in every installed language and check each verdict. They also run on Ubuntu for every push.
- Run and judge with time and memory limits
- IntelliSense for C/C++, Java, Python, JavaScript
- Settings with one-click language installs
- Update prompt
- Ubuntu packages
- Stress testing against a brute-force solution
- Settings export and import
See the open issues for proposed features and known issues.
Distributed under the GNU General Public License v3.0. See LICENSE for more information.
Rohith Prem: github.com/rohithprem18
Project Link: https://github.com/rohithprem18/NppDev

