7

How do I add a hotkey to view lint errors? It shows me that there is an error, but doesn't tell me what it is. If I want to see the errors I have to

right click -> Anaconda -> show error list

which seems very inconvenient. I think it would be nice to have a panel on the bottom with all the lint errors showing or at the very least add a hotkey to toggle the errors menu.

MattDMo
  • 100,794
  • 21
  • 241
  • 231
John Smith
  • 1,750
  • 3
  • 18
  • 31

4 Answers4

12

Open the Sublime console and type

sublime.log_commands(True)

Then

right click -> Anaconda -> show error list

Look in the console for the command-name, and add it to your

Preferences > Key Bindings - User

{ "keys": ["shift+f12"], "command": "COMMAND_NAME" },

Turn off logging with

sublime.log_commands(False)
aliteralmind
  • 19,847
  • 17
  • 77
  • 108
4

If you just move the cursor to the line that is giving you the error, you get a complete description of what the error is in the Sublime Text 3 status bar.

Apart from that, you can set the option anaconda_linter_show_errors_on_save as true (it's false by default) to force anaconda to show you the errors list quickpanel everytime that you save the file.

Wingman4l7
  • 649
  • 1
  • 8
  • 23
DamnWidget
  • 1,397
  • 2
  • 10
  • 16
0

Another solution, not ideal but still quicker, is to ctrl+shift+p followed by typing error followed by enter. This will show you the anaconda errors.

Ogaday
  • 469
  • 3
  • 13
0

{ "keys": ["ctrl+alt+keypad8"], "command": "anaconda_disable_linting" },

{ "keys": ["ctrl+alt+keypad9"], "command": "anaconda_enable_linting" }

Ryan Stefan
  • 124
  • 1
  • 3