[{"data":1,"prerenderedAt":293},["ShallowReactive",2],{"en-post-78":3},{"id":4,"title":5,"body":6,"description":274,"extension":286,"meta":287,"navigation":288,"path":289,"seo":290,"stem":291,"__hash__":292},"content/post/78.md","78",{"type":7,"value":8,"toc":273},"minimark",[9,14,23,32,36,58,62,95,99,156,160,189,193,205,209,216,220,231,235,258,267],[10,11,13],"h2",{"id":12},"what-is-notepad","What Is Notepad++",[15,16,17,18,22],"p",{},"Notepad++ is a free, open source source-code editor and the most direct replacement for the built in Windows Notepad. It runs on Windows, is built with C++ and the Scintilla component, and the installer is only about ten-plus MB, so it launches almost instantly and uses very little memory. The official repo, ",[19,20,21],"code",{},"notepad-plus-plus/notepad-plus-plus",", has roughly 29.8k stars on GitHub and is licensed under GPL.",[15,24,25,26,31],{},"Its biggest selling point is not a flashy interface but stability. Syntax highlighting for dozens of languages, code folding, regex search and replace, macro recording, and a plugin ecosystem cover the daily needs of anyone who writes code or edits config files, and its operation logic has barely changed in over a decade, so veteran users pick it up with zero cost. For the occasional text tweak, the system Notepad is fine; but the moment you touch code, config files, or batch text processing, Notepad++ is basically the first tool to install on Windows. If you want to do serious coding on Windows and also set up a Linux environment, see ",[27,28,30],"a",{"href":29},"/post/46/","Install and Set Up WSL2 on Windows to Run Linux",".",[10,33,35],{"id":34},"key-features","Key Features",[37,38,39,43,46,49,52,55],"ul",{},[40,41,42],"li",{},"Syntax highlighting and folding. Built in support for C/C++, Python, Java, HTML, JSON, and dozens more; it detects the language on open and folds blocks, so even long files stay readable.",[40,44,45],{},"Multi-document and split view. Multiple tabs at once, plus vertical or horizontal split, which makes comparing two files painless.",[40,47,48],{},"Macros and autocomplete. Record a macro to replay a repetitive sequence in one go, plus function autocomplete and bracket matching so you type less.",[40,50,51],{},"Regex search and replace. Perl compatible regular expressions let you search and replace across many files, which is great for logs, bulk renaming, and data cleanup.",[40,53,54],{},"Plugin ecosystem. Through Plugins Admin you install NppFTP, Compare, PythonScript, and more, covering file diffing, remote editing, and scripting.",[40,56,57],{},"Encoding and formats. Convert between UTF-8, UTF-16, and various ANSI code pages, and show invisible characters and line endings, which rescues garbled files copied from elsewhere.",[10,59,61],{"id":60},"how-to-install","How to Install",[63,64,65,76,79,85,92],"ol",{},[40,66,67,68,71,72,75],{},"Open ",[19,69,70],{},"https://notepad-plus-plus.org/downloads/",", pick the latest version, and download ",[19,73,74],{},"npp.*.Installer.exe"," for 64 bit or 32 bit depending on your system.",[40,77,78],{},"Double click the installer, allow it to run when Windows prompts, and follow the wizard to finish.",[40,80,81,82,31],{},"You can also grab the build from GitHub Releases at ",[19,83,84],{},"https://github.com/notepad-plus-plus/notepad-plus-plus/releases",[40,86,87,88,91],{},"Prefer a package manager? Run ",[19,89,90],{},"winget install Notepad++.Notepad++"," in a terminal.",[40,93,94],{},"Launch it from the Start menu or desktop shortcut; it is ready to use on first open.",[10,96,98],{"id":97},"how-to-use-it","How to Use It",[63,100,101,108,123,142,149],{},[40,102,103,104,107],{},"After launch, use the ",[19,105,106],{},"File"," menu to create or open a file; the language dropdown at the top switches syntax highlighting, and the colors are only correct once the language matches.",[40,109,110,111,114,115,118,119,122],{},"Hold ",[19,112,113],{},"Ctrl"," and scroll the mouse wheel to zoom text quickly; ",[19,116,117],{},"Ctrl+F"," opens find and ",[19,120,121],{},"Ctrl+H"," opens replace, the two most used shortcuts.",[40,124,125,126,129,130,133,134,137,138,141],{},"Record a macro: in the ",[19,127,128],{},"Macro"," menu choose ",[19,131,132],{},"Start Recording",", perform your steps, ",[19,135,136],{},"Stop Recording",", then ",[19,139,140],{},"Save Current Recorded Macro"," and bind a hotkey to replay it.",[40,143,144,145,148],{},"Install plugins: open ",[19,146,147],{},"Plugins > Plugins Admin",", search and tick what you want, then install and restart.",[40,150,151,152,155],{},"Diff two files: with the Compare plugin installed, open two files and click ",[19,153,154],{},"Plugins > Compare > Compare","; differences highlight side by side, which is great for code or config review.",[10,157,159],{"id":158},"things-to-watch","Things to Watch",[37,161,162,173,176,179,186],{},[40,163,164,165,168,169,172],{},"Saving encoding. For non ASCII content like Chinese, save as ",[19,166,167],{},"UTF-8"," and tick ",[19,170,171],{},"Encode in UTF-8 without BOM",", or other tools may show garbage.",[40,174,175],{},"Permissions. Editing system files such as hosts requires running Notepad++ as administrator, otherwise you can open but not save.",[40,177,178],{},"Plugin sources. Only install plugins from the official Plugins Admin or trusted channels; unsigned third party plugins are a security risk.",[40,180,181,182,185],{},"Auto backup. In ",[19,183,184],{},"Settings > Preferences > Backup",", turn on session auto save so an accidental close does not lose your work.",[40,187,188],{},"License. The software is under GPL, and redistributing it requires keeping the license and copyright notice.",[10,190,192],{"id":191},"download","Download",[37,194,195,200],{},[40,196,197,198],{},"Official download ",[19,199,70],{},[40,201,202,203],{},"GitHub Releases ",[19,204,84],{},[10,206,208],{"id":207},"official-site","Official Site",[37,210,211],{},[40,212,213],{},[19,214,215],{},"https://notepad-plus-plus.org",[10,217,219],{"id":218},"getting-started","Getting Started",[15,221,222,223,226,227,230],{},"Do not rush to install a pile of plugins right after installing. Master syntax highlighting, find and replace, and macro recording first, and your daily efficiency already doubles. When editing hosts or config files, right click and open as administrator, or the edits will not stick. Regex replace looks scary, but knowing ",[19,224,225],{},".*"," and ",[19,228,229],{},"()"," is enough for most bulk text cleanup. For comparing files, the Compare plugin alone suffices; do not install everything Plugins Admin offers, or startup gets slow.",[10,232,234],{"id":233},"faq","FAQ",[15,236,237,241,242,245,246,249,250,253,254,257],{},[238,239,240],"strong",{},"Notepad++ shows Chinese as garbage. What do I do?","\nAlmost always the encoding is wrong. In the ",[19,243,244],{},"Encoding"," menu, try ",[19,247,248],{},"Encode in UTF-8"," or the matching ANSI code page; once it displays correctly, immediately ",[19,251,252],{},"Save As"," as ",[19,255,256],{},"UTF-8 without BOM"," to fix it for good. Files copied from another machine are especially prone to this.",[15,259,260,263,264,266],{},[238,261,262],{},"How do I compare two files in Notepad++?","\nInstall the Compare plugin, open both files, and click ",[19,265,154],{},". Differing lines highlight side by side, and the line numbers line up on the left, which is handy for code or config diffs.",[15,268,269,272],{},[238,270,271],{},"Can Notepad++ replace an IDE for projects?","\nFor light scripts and single file edits, absolutely. But it remains an editor, not an IDE, with no smart completion or project wide indexing. For real development, VS Code or a WSL2 based environment is the more comfortable choice.",{"title":274,"searchDepth":275,"depth":275,"links":276},"",2,[277,278,279,280,281,282,283,284,285],{"id":12,"depth":275,"text":13},{"id":34,"depth":275,"text":35},{"id":60,"depth":275,"text":61},{"id":97,"depth":275,"text":98},{"id":158,"depth":275,"text":159},{"id":191,"depth":275,"text":192},{"id":207,"depth":275,"text":208},{"id":218,"depth":275,"text":219},{"id":233,"depth":275,"text":234},"md",{},true,"/post/78",{"description":274},"post/78","enkugoBSO3Aeq_vMVyiOMGrtgfElbnPQdvAB5ZHDZfk",1794378304317]