Replies: 4 comments 2 replies
-
But this is only for some of my files. What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
-
Hey @psharp15, is the issue that its automatically formatting your code or is your file actually losing code changes that you made when you save it? |
Beta Was this translation helpful? Give feedback.
-
Hi Mr. Lyons,
Thank you for getting back to me! Unfortunately, it’s the first one: automatically formatting my code. I never manually reformatted my code in the way seen on the second image. It’s a gnuplot plotting script, but I’ve set the language format to be C++ to get the colorful syntax to apply.
Just a quick test shows that this only happens when I set the language to C++. When I set it to C, CSS, or Python, it doesn’t reformat the code when I “Cmd + s”. So I’ll just avoid setting the language to C++, especially the not working on a C++ script.
Thanks!
… On Apr 13, 2023, at 4:19 PM, Joseph T. Lyons ***@***.***> wrote:
Hey @psharp15 <https://github.com/psharp15>, is the issue that its automatically formatting your code or is your file actually losing code changes that you made when you save it?
—
Reply to this email directly, view it on GitHub <https://github.com/zed-industries/community/discussions/1428#discussioncomment-5608957>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/APZSRVMSVVLHAYVBRZ5JSHDXBBNTNANCNFSM6AAAAAAW4FBPM4>.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
-
guys, why you still haven't fixed this bug? i am trying to save .c or .cpp files and zed changes all file formatting in awful way (from 4 spaces to 2 and etc) |
Beta Was this translation helpful? Give feedback.
-
I'm using Zed 0.81.1
When I'm trying to save a file, I do: Cmd+s, and instead of saving it, it reverts it back to the original version.
Beta Was this translation helpful? Give feedback.
All reactions