Other Resources

Notepad Replacement

Notepad is a default text editor shipped with Windows. You may want to use Notepad++ instead of Notepad. However, there’s no obvious way to do it. From the version 7.5.9 onward, you can run the following command to make Notepad++ replace Notepad (run in cmd.exe with Administrator privileges):

reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /t REG_SZ /d "\"%ProgramFiles(x86)%\Notepad++\notepad++.exe\" -notepadStyleCmdline -z" /f

Note that you may need to use %ProgramFiles%\Notepad++\ to substitute for %ProgramFiles(x86)%\Notepad++\ if you have Notepad++ 64-bit installed, or use other path if your Notepad++ is installed in a non-default location.

Use the the following comment to undo the replacement:

reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /f

Notepad++ Cheat sheet


  • Tab navigation

    • To switch between first and last tab, use Ctrl + Shift + MOUSEWHEEL on tabs. MOUSEWHEEL up will take to first tab while down will take to last tab. FirstAndLast

    • To switch and activate next/previous tab, there are multiple options.

    • Use Ctrl + MOUSEWHEEL on tabs. MOUSEWHEEL up will take to previous tab while down will take next tab.

    • Use Ctrl + Page Up for next tab and Ctrl + Page Down for previous tab.

    • Use Ctrl + Tab for next tab and Ctrl + Shift + Tab for previous tab. Using use Ctrl + Tab or Ctrl + Shift + Tab while MRU is enabled provides great user experience. To enable MRU you can follow Settings->Preferences->MISC.->Document Switcher, then tick both Enable and Enable MRU Behavior.


    • To move tab from one position to other position,
    • Use Shift + MOUSEWHEEL on tabs. MOUSEWHEEL up will move currently selected tab to previous position while down will move to next position.
    • Use Ctrl + Shift + Page Up for previous position and Ctrl + Shift + Page Down for next position.