SublimeText includes lines in white rectangles

This is pretty annoying, and I can't figure out why.

enter image description here

+86
sublimetext2 syntax-highlighting sublimelinter
Apr 27 '12 at 17:00
source share
12 answers

It looks like you installed SublimeLinter . It highlights errors and warnings.

+56
Apr 27 '12 at 17:03
source share

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

Disable listing within the Anaconda user settings file, Anaconda.sublime-settings, via the file menu: Sublime> Settings> Package Settings> Anaconda> Settings - User: When it opens the file, simply enter the following and save it; -)

{"anaconda_linting": false}

At least that fixed my problem. Blessings (debtor) <<<

+126
08 Sep '14 at 6:24
source share

Disabling Annaconda repeat in sublimetext 3 for the current file:

  • Enter the command palette using Cntrl + Shift + P or Command + shift + P for Mac OS X
  • Type Anaconda: Disable linting on this file and press enter
  • To enable linting Anaconda: Enable linting on this file again Anaconda: Enable linting on this file

Disabling jumper is saved between sessions.

Source

+36
Jun 21 '16 at 4:33
source share

You can probably change "anaconda_linter_mark_style" to "none" and save "anaconda_linter_underlines" as true . This way it will only underline under errors, but will not highlight the entire line.

+26
Jul 01 '15 at 20:23
source share

If you do not want to completely disable SublimeLinter, you can set special settings for the syntax. Preferences -> Package Settings -> Sublime Linter -> Settings Syntax Specific User

Preferences are evaluated similarly to CSS; it cascades. Think of the most user-specific syntax rules rated last.

For example: I also don’t like the white rectangle, so I chose the fill.

  { /* 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 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, } 
+9
May 4 '13 at 2:31
source share

If you use the Anaconda plugin (for Python development), this is a functional feature - this emphasizes Python syntax errors and PEP8 violations .

You can completely disable this feature or change the color of this circuit by adding some custom rules to the current SublimeText theme:

  • In the Sublime Text: Preferences > Browser Packages... menu
  • Locate the source file for the current topic in the directory that opens (* .twTheme file with the name corresponding to the name selected in Preferences > Color Scheme > ... )
  • Duplicate this file, add another name (e.g. Tomorrow-my.tmTheme from Tomorrow.tmTheme )
  • Paste the following code into this newly created theme file immediately before the </array> :

     <dict> <key>name</key> <string>anaconda Error Outline</string> <key>scope</key> <string>anaconda.outline.illegal</string> <key>settings</key> <dict> <key>background</key> <string>#FF4A52</string> <key>foreground</key> <string>#FFFFFF</string> </dict> </dict> <dict> <key>name</key> <string>anaconda Error Underline</string> <key>scope</key> <string>anaconda.underline.illegal</string> <key>settings</key> <dict> <key>background</key> <string>#FF0000</string> </dict> </dict> <dict> <key>name</key> <string>anaconda Warning Outline</string> <key>scope</key> <string>anaconda.outline.warning</string> <key>settings</key> <dict> <key>background</key> <string>#DF9400</string> <key>foreground</key> <string>#FFFFFF</string> </dict> </dict> <dict> <key>name</key> <string>anaconda Warning Underline</string> <key>scope</key> <string>anaconda.underline.warning</string> <key>settings</key> <dict> <key>background</key> <string>#FF0000</string> </dict> </dict> <dict> <key>name</key> <string>anaconda Violation Outline</string> <key>scope</key> <string>anaconda.outline.violation</string> <key>settings</key> <dict> <key>background</key> <string>#ffffff33</string> <key>foreground</key> <string>#FFFFFF</string> </dict> </dict> <dict> <key>name</key> <string>anaconda Violation Underline</string> <key>scope</key> <string>anaconda.underline.violation</string> <key>settings</key> <dict> <key>background</key> <string>#FF0000</string> </dict> </dict> 
  • Adjust the colors to suit your needs. Save the file.
  • Select your "new" theme in Preferences > Color Scheme > and watch the changes.

In my case, it was necessary to specify point 3., because the color did not update immediately after saving the theme and restarting the Sublime / switching theme (does sublime use some kind of buffer? ..). So, you may need to repeat steps 3-6 when you want to play a little with flowers.

Source: Anaconda Docs

+6
Dec 08 '14 at 1:06
source share

For Anaconda / Sublime Users

I have Anaconda, and the lint function is useful, but out of the box it is dragon style. When you hover over a rectangle, it will tell you the number of the rule that it applies. You can disable those that, in your opinion, are not needed or get up as you enter the code.

On Mac computers:

  • Go to settings | View Packages | Anaconda | Anaconda.sublime-settings
  • Search for "pep8_ignore"
  • Add the rules you want to remove.

I have included in my list the following rules that remove some space rules that interfere with me, but retain the "no tab" rule.

  "E201", "E202", "E203", "E302", "E309", "W291", "W293", "W391" 

You will need to set "translate_tabs_to_spaces": true in your user settings if you go with this list.

Alternatively, you can set pep8 to false to completely stop it.

+5
Mar 15 '16 at 11:01
source share

If none of the previous solutions worked for you, try the following:

  • Go to settings | Package Settings | Pylinter | User Settings
  • In the file, just add / change the following lines:

     "run_on_save": false, "disable_outline": true 

This worked for me, and in my case I only had anaconda as the folder that linked the Python Sublime compiler to the python compiler (python.exe) present in the anaconda folder.

+3
May 10 '16 at
source share

I just found that this could also happen randomly on the last word you were looking for. So if you were looking for the "whole", for example. Then all instances of the β€œwhole” will have this white square around them.

+2
Jul 24 '15 at 0:12
source share

if you have an anaconda

go to a directory like this C: \ Users \ giova \ AppData \ Roaming \ Sublime Text 3 \ Packages \ Anaconda and change the settings for anaconda.sublime (find the linter keys anaconda and set them to false). Look, if you installed other linter materials and change their settings to false, where they seem to rely on listing until everything is right for you. I installed different linters, so I had to change them.

+1
Aug 13 '18 at 5:18
source share

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

Sublime> Settings> Package Settings> Anaconda> Settings - User:

In the file that opens, enter the following code and press Ctrl + S to save the file.

 {"pep8": false} 

You can also enter the following:

 {"anaconda_linting": false} 

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

0
Sep 24 '18 at 15:43
source share

In Anaconda with Sublime Text, if you do not want to make any changes to the settings:

In the case where the selection occurs, you can use the keyboard shortcut (in my case it is CTRL-ALT-R) to automatically format the code! The selection will immediately disappear.

You just need to repeat this every time after adding a new code (which is not formatted according to PEP8 rules).

The command is "anaconda_auto_format".

0
Sep 30 '18 at 8:31
source share



All Articles