Here's a common situation for me: I have this idea of a code in my head (in this example, it's in Python), so I open up PyScripter, write the code and then simply run it. PyScripter doesn't ask me to save the code beforehand and in a matter of seconds I happily glance at my algo's results.
Now I understand that C is a compiled language and the code must be saved beforehand, et cetera, et cetera, but I was wondering if there is such an IDE that let's you simply enjoy your code without having many saved files or folders named "test1.*"
, "test2.*"
, etc...
One way I guess this could be done is that the IDE will manage all project files in a temp folder, up until (and if at all...) the user clicks on "save/save as"; then it will actually save the files in a desired location. So in most cases, where the user just wants to write a code and see its output, the IDE won't bother the user with save prompts.
I'd be very glad if someone could recommend me of such IDEs (if they even exist). A big thanks in advance =]
edit: @Michael Burr Yes, the intention was indeed not to come up with filenames in the first place.
You can try ideone.com . I find it very convenient :-)
It's online so no actual installation is required, and it supports a lot of known programming languages.
For C++, you can do this in Visual Studio. Next time you modify a file, just press F5
(Run) and when the prompt comes up (asking whether you want to save the file before compiling) just check the box that says Don't ask again
.
For Java, Eclipse(maybe others) provides automatic compilation, but you still have to save the file. You just need to check Build Automatically
.
CodePad seems to be created for just this reason. Write your code, hit the button, watch it run. No fuss, and no saving hundreds of files.
If you use emacs:
(defun my-emacs-command-save-compile ()
"save and compile."
(interactive)
(save-buffer)
(recompile))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.