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.

Generate editor.rulers workspace settings from max_line_length?

See original GitHub issue

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:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
jednanocommented, Jan 13, 2018

@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.

1reaction
robsonsobralcommented, Nov 26, 2020

20!

Read more comments on GitHub >

github_iconTop 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 >

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