You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With a C++ project that specifies IndentWidth: 2 in .clang-format, indentation is corrected when I run Editor:Format for a buffer, but as I'm typing code I notice that Zed is defaulting to four space indentation. Any idea how to fix that, so that the indentation Zed uses initially matches?
Also, is there a way to set a per-project "format_on_save" preference without adding something to the project repository itself. Ideally, I'd like to turn the feature off by default, and only turn it on for certain projects when I deem it to be safe.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
With a C++ project that specifies
IndentWidth: 2
in.clang-format
, indentation is corrected when I runEditor:Format
for a buffer, but as I'm typing code I notice that Zed is defaulting to four space indentation. Any idea how to fix that, so that the indentation Zed uses initially matches?Also, is there a way to set a per-project "format_on_save" preference without adding something to the project repository itself. Ideally, I'd like to turn the feature off by default, and only turn it on for certain projects when I deem it to be safe.
Beta Was this translation helpful? Give feedback.
All reactions