SublimeText encloses lines in white rectangles

2019-01-10 02:35发布

It's rather annoying and I can't seem to figure out why.

enter image description here

12条回答
2楼-- · 2019-01-10 03:14

If you still have a problem with those solutions suggested above (with anaconda lint):

Disable linting altogether within the user-defined Anaconda settings file, Anaconda.sublime-settings, via the file menu: Sublime > Preferences > Package Settings > Anaconda > Settings – User: When it opens file, just type the following and save it away ;-)

{"anaconda_linting": false}

At least, it fixed my problem. Blessings (a debtor)<><

查看更多
狗以群分
3楼-- · 2019-01-10 03:15

You probably can change "anaconda_linter_mark_style" to "none" and keep "anaconda_linter_underlines" as true. This way it'll only put a underscore under errors but not highlight the whole line.

查看更多
霸刀☆藐视天下
4楼-- · 2019-01-10 03:16

I just found that this can also randomly happen on the last word that you searched. So if you searched for "integer" for instance. Then all instances of "integer" will have that white square around them.

查看更多
叼着烟拽天下
5楼-- · 2019-01-10 03:19

If you don't want to disable SublimeLinter completely, you can set Syntax Specific Preferences. Preferences -> Package Settings -> Sublime Linter -> Settings Syntax Specific User

The preferences is evaluated similar to CSS, it cascades. Think about the most user-specific, syntax-specific rules evaluated last.

E.g: I also do not like the white rectangle, so I opted for fills.

 {
  /*
        Selects the way the lines with errors or warnings are marked; "outline"
        (default) draws outline boxes around the lines, "fill" fills the lines
        with the outline color, and "none" disables all outline styles
        (useful if "sublimelinter_gutter_marks" is set).
    */
    "sublimelinter_mark_style" : "fill",

    /*
        If true, lines with errors or warnings will be filled in with the
        outline color.

        This setting is DEPRECATED and will be ignored in future
        versions. Use "sublimelinter_mark_style" instead. For backwards
        compatibility reasons, this setting overrides "sublimelinter_mark_style"
        if that one is set to "outline", but has no effect if it's set to "none".
    */
    "sublimelinter_fill_outlines": false,

    // If true, lines with errors or warnings will have a gutter mark.
    "sublimelinter_gutter_marks": false,

    // If true, the find next/previous error commands will wrap.
    "sublimelinter_wrap_find": false,
}
查看更多
干净又极端
6楼-- · 2019-01-10 03:22

you can disable warnings in anaconda.sublime-settings via the file menu:

Sublime > Preferences > Package Settings > Anaconda > Settings – User:

In opened file type following code and press Ctrl + S to save file

{"pep8": false}

you can also type this:

{"anaconda_linting": false}

but it disables both warnings and errors, which is not good

查看更多
Bombasti
7楼-- · 2019-01-10 03:28

Disabling Annaconda linting in sublimetext 3 for current file:

  1. Enter command palette by Cntrl + Shift + P or Command + shift + P for Mac OS X
  2. Type Anaconda: Disable linting on this file and hit enter
  3. To re-enable linting Anaconda: Enable linting on this file

Disabling linting persists between sessions.

Source

查看更多
登录 后发表回答