npp_msvc_ide icon indicating copy to clipboard operation
npp_msvc_ide copied to clipboard

Turn your Notepad++ into powerful Visual Studio replacement!

Notepad++ MSVC IDE

Compile any .cpp file instantly with the press of a button:

Get pretty error/warning/note output:

Featuring custom debugger:

How to setup:

  1. Install Customize Toolbar plugin
  2. Use shortcuts.xml and .btn file in plugins/ to set up custom buttons
  3. Install Build Tools for Visual Studio 2022 or if you have Visual Studio installed, skip
  4. Set up environment variables, launch C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat
  5. echo %path%, echo %include%, echo %lib%, echo %libpath%
  6. Copy to set_vcc_symblink_path.cmd to set them permanently
  7. Alternative to steps 4-6 - use C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat to set up variables every time you build a file, if you don't want to mess with global environment (the cost - slower builds).
  8. Fix up msvc_build.cmd and/or setup your folder structure so that it can find all needed files/programs
  9. You are ready for rapid C/C++ development in Notepad++!

You can control compilation easily from the sourcefile itself by including comment in the top of your source file like this:

// CONSOLE DBG NOPT

CONSOLE - compile program as console application (default - SUBSYSTEM:WINDOWS)

DSEH - disable C++ STD SEH handling (if you need to __try() __except() in functions with objects)

NOPT - disable all optimisations

NW - disable all warnings

SLIB - compile as static library

ASM - instead of compiling to .exe file, opem MASM code created by the compiler in Notepad++ (aka. your own Compiler Explorer)

DBG - compile in debug mode and launch resulting executable with sddbg debugger

NLAUNCH - just compile, don't lauch the executable

What is p|TB|P;?