Equivalent for Sublime Linter "sublimelinter_popup_errors_on_save": true
Just bought a license, moved from Netbeans (debugging) + Sublime combo.
One feature I am not seeing how to enable is something like "sublimelinter_popup_errors_on_save": true which basically gives me a pop up of all the syntax errors when I press save. It shows them inline like it normally does but in addition gives me a big smack in the face and is a great UX enhancement to my workflow.
Does anyone know if something like this is available?
OR
Would anyone be interested in telling me how to code a plugin to do this?
OR
Would anyone code it for me and I toss you some cash?
https://github.com/SublimeLinter/SublimeLinter
Thanks
请先登录再写评论。
Hello!
You can use Code/Inspect Code to see all errors... Set its scope to 'current file' and assign some keyboard shortcut to it in Settings/Keymap/Main menu/Code
Best regards,
Lena
Thanks, I will look into that.
When I assign it to Ctrl + S so it does it on save it says it is already assigned. Is it possible to invoke this on save?
Yes, Ctrl+S is already mapped to Save All, so you can't assign this shortcut to your action. And no, it's not possible to tell the IDE to run this action every time the file is saved. Note that there is no explicit Save action for a single file, the IDE uses auto-saving, and you don't have any guarantees on when it flushes document data to disk. E.g. the application is allowed to do that while the document is being edited - running inspections at this moment can be rather annoying
There is one (in v7) -- to save current document only -- http://youtrack.jetbrains.com/issue/IDEA-98513#comment=27-502599. It has no shortcut, but one can be assigned at "Settings | Keymap" ---> "Other | Save Document"
It is possible to assign the same shortcut to multiple actions (just ignore the warning).
BUT .. the order of execution is NOT guaranteed (i.e. in one case "save" may be performed before another action and in another other way around). Therefore -- the best option in such case would be recording a macro (Edit | Macros) where you execute all this in correct order. Once recorded, you can assign any custom shortcut to it at "Settings | Keymap | Macros | your_macro"