Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indentation support for prefixed lines #110402

Closed
hyperfekt opened this issue Nov 11, 2020 · 3 comments
Closed

Indentation support for prefixed lines #110402

hyperfekt opened this issue Nov 11, 2020 · 3 comments
Assignees
Labels
editor-autoindent Editor auto indentation issues feature-request Request for new features or functionality

Comments

@hyperfekt
Copy link

There are various situations in various languages in which lines are prefixed with one or more non-whitespace characters. Often enough, indentation happens not (only) in front of these characters, but also behind them.

It would be great if Visual Studio Code could provide its indentation-supporting features like the Indent/Outdent action, automatic folding ranges, and continued indentation on Enter in these cases.

Examples include block comments in C, which are commonly marked by an asterisk prefix, and bird-style Literal Haskell, where code lines are preceded by a closing angle bracket.

One relevant exploration is the document linked in this comment.

I intend to implement this feature and extend VSCode's extension API to allow language configuration for it.

@rebornix rebornix added feature-request Request for new features or functionality editor-autoindent Editor auto indentation issues labels Dec 8, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Mar 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
editor-autoindent Editor auto indentation issues feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

3 participants
@rebornix @hyperfekt and others