What is the keyboard shortcut in SublimeText3 to manually enter a line break without executing the command option? In Rstudio I use Shift+Enter. In Excel I use Alt+Enter
I know Enter yields a newline but I don't want that. I want to continue wrapping on the current line - WITH - a line break.
I looked through the key bindings and there isn't one. If you have a macro that will do it, you can bind a hotkey to run that macro like this:
{ "keys": ["shift+enter"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line.sublime-macro"} }
Just go to Sublime Text -> Preferences -> Key Bindings and add your new one.
Related
How can I disable this backspace behavior and remove letters in strandard way?
For some reasons in Sublime Default (Windows).sublime-keymap were changed backspace hotkey actions. I didn't add new plugins or macroses. Probably some kind of bug.
I did next steps to fix it:
Input sublime.log_commands(True)
Press backspace and check what happens. I seen this wrong command that added in file for unknown reason: command: run_macro_file {"file": "res://Packages/Default/Delete Left Right.sublime-macro"}
Open Preferences -> Key Bindings input standard backspace action by command: { "keys": ["backspace"], "command": "left_delete" },
I'd like to customize some of the Sublime Text 3 keybindings to mimic IntelliJ IDEA. One of them is opening a file from the current project, also known as Goto Anything in Sublime jargaon. I followed the instructions in this answer to find out that the default key binding for "Goto Anything" is ⌘ + p on a Mac, like so:
{ "keys": ["super+p"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} }
I added a new keybinding as follows:
[
{ "keys": ["shift+shift"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} }
]
It, however, doesn't work; pressing shift twice in rapid succession does precisely nothing. When I open the console, I see the following message:
Unable to open /Users/me/Library/Application Support/Sublime Text
3/Packages/Default/Default (OSX).sublime-keymap
According to this ticket, this message is harmless but misleading, and is just an indication that Sublime is opening a file.
What's wrong then?
OP here; I found this post in Sublime blog.
ST doesn't support using only modifier keys in a keybinding.
How do I set up a keyboard shortcut to show/hide tabs and the status bar in Sublime Text 3?
At the moment I have to go View->Show/Hide Tabs. I'm using OSX. I have for instance
{ "keys": ["shift+space"], "command": "move", "args":
{"by": "characters", "forward": true},
in my key bindings user file which I set up (thanks to this answer!) to move the cursor one space forwards by pressing shift and space, and ideally I'm looking for something similar to show/hide tabs and the status bar.
In the ST console, enter sublime.log_commands(True). Then execute the command through the menu as normal. The command being executed (with arguments if applicable) will be displayed in the ST console. You can use the information there to create a key binding to the appropriate command.
In Sublime Text, when I press Ctrl+B, it runs my application. Is there a hotkey to force it to stop running?
I'm debugging some code that often hangs, and Sublime Text ends up completely hanging. I'd like to know what hotkey I can press to stop this.
CtrlBreak (Windows/Linux) will cancel a build that is in progress. There is no default key binding for OS X, but you can create your own if you wish. Navigate to Sublime Text -> Preferences -> Key Bindings - User and add the following:
{ "keys": ["super+alt+b"], "command": "exec", "args": {"kill": true} }
If you don't have any custom key bindings yet, make sure to wrap the above with square brackets [].
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:
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.
As alternative to extra plugins, I'm currently using Sublime's own folding shortcuts. Note that when making a selection, of a word or line for example, you will only fold the selected string.
The ctrlshift[ shortcut may be used to fold a code block.
Ofcourse, unfolding can be done with the related ctrlshift] shortcut.
These shortcuts are defined in the Default Sublime keymap, as fold and unfold, as following.
{ "keys": ["ctrl+shift+["], "command": "fold" },
{ "keys": ["ctrl+shift+]"], "command": "unfold" },
Hope this helps you out.