Search code examples
gnomegedit

How to compile while gedit is open in gnome?


I am using gcc to compile c code that I am writing in gedit. My problem is that while my .c file is open in gedit, any command I type into my terminal just hangs until gedit is closed. Obviously it is quite cumbersome editing, saving, closing, running, reopening etc. I was wondering how I can have gedit open while compiling so I don't have to close it every time?


Solution

  • run gedit in background. Like

    gedit yourfile &