I have installed the Filter Lines plugin (Windows OS) but I can't figure out if it is possible to have a keyboard combination for the Edit
> Code Folding
> Fold With String
as I cannot find the default keyboard combination ctrl+k
ctrl+s
in the Key Bindings - Default
?
If this is not possible, can anyone then refer to another filter plugin, which (ideally) realtime filters the text, so I can edit all the lines in one go?
I want keyboard shortcuts for the Code Folding lines:
You can use Ctrl and Alt with this too. Shift+Right mouse button is an alternative way to initial a column select. Dragging in the gutter (where the line numbers are), will select entire lines at once.
To add single-line comments, put the text cursor on the line to comment-out or highlight multiple lines and type CMD + / on Mac, for Linux and Windows use CTRL + / .
Just look at the plugin source and you will know what command to run as shortcut. If the name of the command class is FoldToLinesCommand
, the command name in the shortcut files will be fold_to_lines
.
Another solution is to open Sublime console, and enter
sublime.log_commands(True)
this will log all the commands in the console. After, you just have to run the command you want as a shortcut, look at the console output and write it in your key bindings files. Do not forget to disable command logging when you are done to avoid useless output.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With