-
Notifications
You must be signed in to change notification settings - Fork 35.9k
Open
Labels
editor-autoindentEditor auto indentation issuesEditor auto indentation issuesunder-discussionIssue is under discussion for relevance, priority, approachIssue is under discussion for relevance, priority, approach
Milestone
Description
VSCode 1.9 introduced initial support for line indenting as per the release notes, I think it's this commit: be1b5f7. I'm very interested in this feature, big 👍 for bringing it into VSCode.
Here is some initial feedback:
- I tried for a couple of file formats, it only worked for TypeScript and not e.g., for JSON or PHP.
- Formatting (
Alt+Shift+F) can already do indentation better than the new implementation, maybe it could be used as a fallback if the language doesn't have proper indentation rules. - If I read the code correctly, it re-indents the whole file. It should respect my selection. For example, if I have only 10 lines selected, it should re-indent those. If I don't have any selection, it should do the whole file.
- The command is currently
editor.action.reindentlines, proper casing would beeditor.action.reindentLines.
lumio, neolectron, jstotz, igregson, Fa-BRAIK and 5 more
Metadata
Metadata
Assignees
Labels
editor-autoindentEditor auto indentation issuesEditor auto indentation issuesunder-discussionIssue is under discussion for relevance, priority, approachIssue is under discussion for relevance, priority, approach