-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Supporting ruler settings #1673
Comments
@alexandrudima fyi |
I'd definitely like to see this as well -- it's the reason I asked this question about plugins changing the interface. I'd be nice if one of the options was for it to match the |
I use rulers a lot as part of a standard code format that varies slightly from language to language and filetype to filetype. I have a need to set different rulers on a per-language, per-project basis. For example, text files will wrap at 77, assembly files at 88, HTML/PHP at 124... |
Adding this div below the <style>
.ruler-thing {
position: absolute;
height: 100%;
width: 80ch;
border-right: 1px solid white;
}
</style>
<div class="ruler-thing"></div> I'll see about making the width and color configurable, and try making a PR this weekend. I think Kroc's idea could be done by an extension that switches settings based on what file type is open. That would allow for all types of settings to be changed, including the ruler width. |
I believe that a broad range of feature requests for VSCode fit into the bracket of persisting configuration choices on a per-project basis (word-wrap, tab-settings, rulers &c.), so that code formatting standards can be carried from user to user. No editors currently do this comprehensively enough, and I would opt for VSCode over Atom / Notepad++ if I could ensure that people who access my code would get the same tabs/rulers as I use (which I should stress, vary from one filetype to another). That however, is a different bug/issue; for basic ruler support, a custom width option is crucial. Multiple rulers is nice, but not critical (an extension could handle this). A lot of people like to combine the ruler with the word-wrapping options, so you have to be careful of the complexities that creates. Again, per file-type ruler widths is a feature no other editor has. Kind regards, |
I prefer to have 80, 100 and 120 set up as rulers in my editors. Multiple rulers would be handy. |
Not sure if this is the right place to ask, but is there an easy way to customize the style of the rulers, e.g. using a dotted or dashed line instead of a solid line? |
Ruler settings would be helpful for showing end of row text.
Sublime text:
The text was updated successfully, but these errors were encountered: