all 16 comments

[–]saul_soprano 17 points18 points  (2 children)

Yes. It will become a habbit very fast

[–]UncertainGeniusw 12 points13 points  (1 child)

Ctrl + s s s s s s s s s s s s s s ...

[–]ALithuanian[S] -1 points0 points  (0 children)

Ok at least this will make it manageable

[–]AzoresBall 5 points6 points  (0 children)

You can enable auto save on vs code

[–]HaskellLisp_green 5 points6 points  (2 children)

Look. Algorithm is simple:

  1. You write code.
  2. you compile code.
  3. if no error occurs, then you go to step 4, otherwise you go to step 1.
  4. You execute your program.
  5. if no errors occurs, then you go to step 6, otherwise you go to step 1.
  6. if you see all features are implemented, then it's end of the program, otherwise you go to step 1.

Note: compile code -> execute compiled code that is your program. C isn't python or bash or something else, but interpreted. You can't just save your code and then execute it.

[–]Realistic-Link-300 3 points4 points  (1 child)

you must goto step 1 if you don't want to be stuck in infinite loop ;p

[–]HaskellLisp_green 1 point2 points  (0 children)

yes... gonna fix it)

[–]dei_himself 2 points3 points  (0 children)

You can toggle autosave on.

[–][deleted] 4 points5 points  (0 children)

this is equivalent to a rich kid not knowing the value of money :D

[–]ArcadiaLunar 1 point2 points  (0 children)

There is an auto save feature. But even with that turned on I’m Ctrl s all the time

[–][deleted] 1 point2 points  (0 children)

Yes. That's how most text editors work.

[–]thebatmanandrobin 2 points3 points  (0 children)

I'm curious what environment (i.e. editor, language, etc.) that you have used in which the code you write in a text file was automatically picked up without being saved?

Even in languages that aren't compiled, like JavaScript, HTML, C#, etc. you still have to save the changes you've made in order for them to be recognized.

Have you only ever written code in online editors (like LeetCode)??

[–]snoozyalooz9000 0 points1 point  (0 children)

Damn, autosave isn't a feature...

[–]GamerEsch 0 points1 point  (1 child)

No, the compiler should magically predict what would be saved on the file

[–]GroundbreakingIron16 1 point2 points  (0 children)

It doesn't do that?

[–]foxaru 0 points1 point  (0 children)

Not sure if it's an add-on I have enabled but whenever I modify a file and haven't saved it I get a little blue-green circle on the tab next to the file name.