Skip to content

Supporting ruler settings #1673

Closed
Closed

Description

@greybax

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

Activity

  1. added
    feature-request
    on Dec 28, 2015
  2. bpasero commented on Dec 28, 2015

    @bpasero
    Contributor
  3. tucker-m commented on Dec 28, 2015

    @tucker-m

    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.

  4. Kroc commented on Dec 29, 2015

    @Kroc

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

  5. tucker-m commented on Dec 30, 2015

    @tucker-m

    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.

  6. Kroc commented on Dec 31, 2015

    @Kroc

    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.

  7. Tyriar commented on Jan 23, 2016

    @Tyriar
    Contributor

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

  8. jamiebarrow commented on Aug 3, 2017

    @jamiebarrow

    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?

  9. locked and limited conversation to collaborators on Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions