Git Product home page Git Product logo

Comments (6)

zwpaper avatar zwpaper commented on May 17, 2024 1

@simurai Exactly! Thanks so much.
I use .gutter-container and it works.
then I try to disable the linter, .gutter also works!

from one-dark-syntax.

mikemcbride avatar mikemcbride commented on May 17, 2024

Personally I like the look, and I have to believe they intend for it to look that way. It's easy enough to just add something like the following to your own stylesheet.less for a visual cue:

.gutter {
  border-right: 1px solid rgba(255,255,255,0.1);
}

Just my $0.02

from one-dark-syntax.

lee-dohm avatar lee-dohm commented on May 17, 2024

I'm pretty certain this is intentional also. If it is intentional and since a workaround is relatively simple, I'm inclined to mark this wontfix. I'll wait until @simurai lets us know his thoughts though.

from one-dark-syntax.

simurai avatar simurai commented on May 17, 2024

Yes, this is intentional. Personally, I have the

  • Show Indent Guide

enabled in the settings. But if not, then yeah, it's kinda hard to tell if a line is indented or not.

In your styles.less file, you could:

Border

Add a border (like @mmcbride1007 suggested):

@import "syntax-variables";
atom-text-editor::shadow .gutter {
  border-right: 1px solid @syntax-indent-guide-color;
}

screen shot 2016-02-23 at 1 09 16 pm

Background

Add a background color. Maybe

@import "syntax-variables";
atom-text-editor::shadow .gutter {
  background-color: lighten(@syntax-background-color, 5%);
}

screen shot 2016-02-23 at 1 08 40 pm

from one-dark-syntax.

zwpaper avatar zwpaper commented on May 17, 2024

@simurai I tried the solution, but I got two lines after the line number like the pic, could you help me please?
image

from one-dark-syntax.

simurai avatar simurai commented on May 17, 2024

@zwpaper You probably have a package installed that adds a second gutter, like linter? Using the .gutter-container instead should only show one line:

atom-text-editor::shadow .gutter-container {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

from one-dark-syntax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.