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

Supporting ruler settings #1673

Closed
greybax opened this issue Dec 28, 2015 · 7 comments
Closed

Supporting ruler settings #1673

greybax opened this issue Dec 28, 2015 · 7 comments
Assignees
Labels
feature-request Request for new features or functionality verified Verification succeeded
Milestone

Comments

@greybax
Copy link
Contributor

greybax commented Dec 28, 2015

Ruler settings would be helpful for showing end of row text.
Sublime text:
1234

@bpasero bpasero added feature-request Request for new features or functionality editor labels Dec 28, 2015
@bpasero bpasero added this to the Backlog milestone Dec 28, 2015
@bpasero
Copy link
Member

bpasero commented Dec 28, 2015

@alexandrudima fyi

@tucker-m
Copy link

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 editor.wrappingColumn setting.

@Kroc
Copy link

Kroc commented Dec 29, 2015

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

@tucker-m
Copy link

Adding this div below the .view-overlays div seems to do it:

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

@Kroc
Copy link

Kroc commented Dec 31, 2015

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,
Kroc Camen.

@Tyriar
Copy link
Member

Tyriar commented Jan 23, 2016

I prefer to have 80, 100 and 120 set up as rulers in my editors. Multiple rulers would be handy.

@jamiebarrow
Copy link

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?

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

7 participants