Generate editor.rulers workspace settings from max_line_length?
See original GitHub issue- I have a question that is specific to this extension; thus, inappropriate for the main EditorConfig issue tracker.
Hi, this is a feature request. I’ve read #53, where max_line_length
was previously looked at, and it was decided that there shouldn’t be any sort of auto-wrapping based on this setting, which I agree with.
However something that was mentioned in that thread, but not further discussed, was generating equivalent editor.rulers
settings based on the max_line_length, giving the user a visual guide in the editor, but nothing more. (Apparently this is what Atom already does.)
I’ve had a request on my own extension (that does comment wrapping) to support max_line_length. Since that extension can already use rulers, I’m kinda hoping to kill two birds with one stone here.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Vertical rulers in Visual Studio Code - Stack Overflow
To configure it, go to menu File → Preferences → Settings and add this to to your user or workspace settings: "editor.rulers": [80,120]....
Read more >VS Code tips — The editor.rulers setting - YouTube
Today's VS Code setting : editor.rulersRender vertical lines in the editor at one or more character columns. Set "" editor. rulers "": [80, ......
Read more >VS Code - Vertical Rulers for Prettier Code?
In VS Code, the vertical ruler is a static, customizable design element to give your code an unenforced right-side boundary, ...
Read more >Do You Know About Rulers in Visual Studio Code?
How to add a ruler? · Step 1. Open the settings.json file · Step 2. Add an “editor.rulers” property · Step 3. Celebrate....
Read more >Setting up VS Code for Python Development like RStudio
This is a must-have feature to keep your code readable and you can do the same with VS Code by specifying "editor.rulers" in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ChrisCrewdson thanks for the explanation. It makes sense now. I can’t think of a graceful way of doing this and I think it would require way more engineering than it’s worth. Also, it might be confusing that EditorConfig is somehow drawing a relationship between two completely different settings. I think there’s more bad than good that can come out of this.
I think what you all really want is https://github.com/editorconfig/editorconfig/issues/89 to be implemented, in which case, the
editor.rulers
setting wouldn’t even be needed. Let’s continue that conversation rather than going down this rabbit hole.20!