C language: compile and run in Notepad++


In top menu press “Run” and enter there… Example:

cmd /c cd "C:\Users\n\Desktop\" && gcc 1.c -o 1.exe && 1.exe

There we say to Notepad++:

cmd – run terminal

/c means to close cmd terminal after program finished; you can make it /k (so it won’t close)

cd "C:\Users\<USERNAME>\Desktop\" go to place where we have our source code file (in our case – Windows desktop).

&& – run next command

gcc 1.c -o 1.exe – compile source into executable binary file

1.exe run executable file (for testing purposes)

My video instruction (there will be a bonus – how to run the command by hotkey!):


This entry was posted in C language (en), Notepad++ (en). Bookmark the permalink.

Leave a Reply

🇬🇧 Attention! Comments with URLs/email are not allowed.
🇷🇺 Комментарии со ссылками/email удаляются автоматически.