Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 3: Anaconda show lint errors hotkey?

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.

like image 927
John Smith Avatar asked Feb 21 '15 21:02

John Smith


2 Answers

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)
like image 148
aliteralmind Avatar answered Nov 05 '22 17:11

aliteralmind


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.

like image 40
DamnWidget Avatar answered Nov 05 '22 17:11

DamnWidget