question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Should this plugin support converting/fixing indentation?

See original GitHub issue

As requested in @jedmao’s comment in my PR #84, let’s discuss if this extension should support converting indentation.

I feel that a feature like this has its place in any EditorConfig extension. I’m specifying indent style in my .editorconfig, so I’d expect it to behave just like other properties (end_of_line, insert_final_newline, trim_trailing_whitespace).

All of the above mentioned properties change the file in some way (inconsistently in this extension, some are applied on load and some automatically on save, but that’s for another issue).

I use .editorconfig as the single source of truth for line endings, indentation style etc. - so I expect EditorConfig to change my files accordingly to my config without remembering to format code manually all the time. Maybe I’m doing it wrong, who knows?

Thoughts?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
xuhdevcommented, Oct 24, 2016

I agree with @jedmao . However, for your purpose, you may consider a standalone fixer to be used, instead of being a feature of the editor extensions/plugins.

0reactions
AviDudacommented, Oct 25, 2016

I see. Thanks for your feedback!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Indentation is not working
Hi, I am using Enlighter to highlight my website codes. However, the indentation is not working at all on any Enlighter theme. I...
Read more >
Notepad++ keeping spaces in indent
Does anyone know of a setting or plugin that can be used to get an exact copy of the indentation, rather than replacing...
Read more >
How to Set WordPress to Indent Paragraphs
Today I will demonstrate how to indent paragraphs in WordPress. ... If you have ever found the default toolbar lacking, then this plugin...
Read more >
Indentation Without Dents
In this article I will attempt to guide you through writing a Vim indentation plugin for a subset of the MATLAB programming language....
Read more >
indent-rainbow - Visual Studio Marketplace
Extension for Visual Studio Code - Makes indentation easier to read. ... The visualization can help to find problems with the indentation in ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found