Is there a way to edit source code

I got an arduino and the source code hooked up on one computer, now when I'm out testing it with a laptop, is there a way I can directly edit the source code on the arduino?

You will need a copy of the .ino sketch file and the IDE program on the laptop.

So yes, but no. You can't uncompile what's on the Arduino back into something editable, you just recompile/rewrite each time.

You'll need to install the Arduino IDE and copy the source code onto the laptop, recompile, and upload.

Meaning if you do some sketch editing on the laptop, you'll need to bring that most recently uploaded .ino file back onto the computer to work on the computer.

Purely theoretically, I'm sure you could give the impression of always editing the most current code.
Either using cloud storage or an on-board SD card system, have a macro to shoot a copy of the ino file after each upload to cloud/SD, then run a macro that will pull that file as if you were opening what's on the Arduino to edit.

Would be nice to have the Arduino actually store a copy of the .ino to be able to 'pull' a sketch off an Arduino, but that effectively roughly cuts the available mem in half since you're keeping two of the same thing (just pre and post compiled).
Just looked at one of my ino files, IDE says 13k in prog storage, PC says ino file is 10k.

chamberskevin:
I got an arduino and the source code hooked up on one computer, now when I'm out testing it with a laptop, is there a way I can directly edit the source code on the arduino?

The source code isn't on the arduino. What is on the arduino is the compiled machine-code image.

chamberskevin:
is there a way I can directly edit the source code on the arduino?

NO.

The source code can only be edited on a PC.

...R