-
-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to define a minimal indentation #2138
Comments
Hi @Angelisium, does this mean the entire source code would be indented by the given amount of tabs? Personally, I've never seen code formatted that way. What's the benefit of doing this? |
Sorry for the delay in responding, I did not see the notification. I learned PHP a few years ago and it always seemed logical to me to indent the code between tag E.G. : <?php
// some stuff
// foo bar
?> As it is the case when I add CSS or JS between HTML tags. E.G. : <!DOCTYPE html>
<html lang="en">
<!-- head -->
<body>
<style>
body {
/* some stuff */
}
</style>
</body>
</html> I know it's rare. I myself only do it when I'm working on solo projects (or personal projects of which I am the leader 馃槇) ; otherwise, I follow the formatting rule established beforehand (generally PSR-2/12 for simplicity) I don't have many public examples... I found that in my gitlab code snippets: Time and Sql ; and this in my gitlab repo : Octave |
Hi 馃憢
I don't know if many people would be interested, I think it would be nice to have an option to define a minimal indentation. like :
Who, according to
--tab-width
and--use-tabs
would give :Input:
Output:
I know it's a really marginal addition but it makes me anxious not to have this indentation that I always use in all my projects 馃槶
The text was updated successfully, but these errors were encountered: