SublimeText encloses lines in white rectangles

后端 未结 14 1494
情深已故
情深已故 2020-12-02 05:37

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

\"enter

相关标签:
14条回答
  • 2020-12-02 05:55

    For me, on sublime 3 this was the PyLinter Package. While the linting feature's useful i also wanted to get rid of the annoying highlight. Found this on their docs if it's helpful! :) https://packagecontrol.io/packages/Pylinter I was able to remove the highlight with Command + option + x

    The plugin can be invoked by a keyboard shortcut:
    
    OS X: Command+option+z
    Linux, Windows: Control+Alt+z
    
    **Toggle Marking**
    
    The marking of the errors in the file can be toggled off and on:
    
    OS X: Command+option+x
    Linux, Windows: Control+Alt+x
    
    0 讨论(0)
  • 2020-12-02 05:56

    In Anaconda with Sublime Text, if you don't want to make any changes to the settings:

    In the case highlighting occurs, you can use a keyboard shortcut (in my case it's CTRL-ALT-R) to autoformat the code! The highlighting will be gone immediately.

    You just have to repeat that every once in a while, after having added new code (which is not formatted according to the PEP8 rules).

    The command is "anaconda_auto_format".

    0 讨论(0)
  • 2020-12-02 05:56

    On line 300 "anaconda_linter_mark_style": "none", in Preferences -> Package Settings -> Anaconda -> Settings - Default. This removes the "annoying" highlighting but still checks for pep8 errors

    0 讨论(0)
  • 2020-12-02 06:00

    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

    0 讨论(0)
  • 2020-12-02 06:01

    if you got the anaconda linting

    go in the dir like this C:\Users\giova\AppData\Roaming\Sublime Text 3\Packages\Anaconda and change the anaconda.sublime-settings (find the anaconda linter keys and set them to false). See if you installed other linter stuff and change their settings to false where it seems to rely on linting until everythings is right for you. I had installed different linters, so I had to change all of them.

    0 讨论(0)
  • 2020-12-02 06:02

    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.

    0 讨论(0)
提交回复
热议问题