How to compile programs in notepad++?

  • Thread starter Thread starter pairofstrings
  • Start date Start date
  • Tags Tags
    Programs
AI Thread Summary
Notepad++ does not include a built-in compile button, as it is primarily a text editor rather than a full development environment. To compile code, users need to install a separate compiler for the programming language they are using and configure Notepad++ to call that compiler. While there is a 'Run' option in the menu, it does not compile code directly. For users looking for a program to write, compile, and run C/C++ programs on Windows, Dev-C++ is recommended as a suitable option. Visual Studio is also suggested as a more robust alternative, particularly for those familiar with its features.
pairofstrings
Messages
411
Reaction score
7
I cannot find the compile button anywhere in the program. Is there a shortcut key to compile the programs in notepad++?
Thanks!
 
Technology news on Phys.org
pairofstrings said:
I cannot find the compile button anywhere in the program. Is there a shortcut key to compile the programs in notepad++?
Thanks!

Maybe you are looking for something like this:

http://npp-community.tuxfamily.org/documentation/notepad-user-manual/commands

You will have to use the right variables and look at the compiler command line arguments, but this should do the trick.

What compiler are you using?
 
Last edited by a moderator:
chiro said:
What compiler are you using?
I was thinking maybe notepad++ will compile my written code and then run it. I don't know how to provide the path for a compiler.
I found the 'run' button under 'Run' menu but couldn't find compile button... therefore, I asked if there is any predefined short-cut key in notepad++ to compile the program.
 
pairofstrings said:
I cannot find the compile button anywhere in the program.
Thanks!

You should be aware, that Notepad++ is "just" an editor without any compiler, not a full blown development environment. If you want to run a compiler from Notepad++ you need to have a compiler installed for the language in question and you must then configure Notepad++ to call this compiler.
 
Can anyone tell me any program where I can write, compile and run few C/C++ programs in Windows.
 
pairofstrings said:
Can anyone tell me any program where I can write, compile and run few C/C++ programs in Windows.

Dev-CPP is a good fit for your needs:

http://www.bloodshed.net/devcpp.html

It's completely free and has a lot of features.

Personal note: I think the visual studio environment is a tonne better (and I prefer VC 6.0 to the later versions), but dev-cpp is still ok.
 
Cygwin.
 
swartzism said:
Cygwin.

is not an IDE or an editor :rolleyes:
 
  • #10
Do you know what visual editor is? :rolleyes:
 

Similar threads

Back
Top