In Sublime Text 2, I'd like to be able to bookmark a line, so I can have easy access to it.
I'm working on a 2011 iMac, and various sources tell me that the shortcut is supposed to be cmd + f2.
However, when I press that, absolutely nothing happens. It does work however, if I manually go through the Goto menu and add it. Has anyone else experienced the keyboard shortcut failing? Does anybody have any ideas of how to solve it?
Thanks.
For extra info, I think this is the relevant line in the default keybindings file.
{ "keys": ["super+f2"], "command": "toggle_bookmark" },
The point is: F keys on mac are triggered with pressing fn key, so for this case that would work as cmd+fn+f2.
Related
When I press Cmd + Shift + E I set focus on the explore file tree, and can now navigate my files with the arrow keys.
Enter should active the file but instead it activates the rename command that is normal associate with F2.
It works on windows but not on my macbook. I know how to create a custom key binding. but I can not find the command for activating a file in keybindings.json.
I am using Parallels Desktop 12 for Mac and know that it can cause keyboard binding issues. But I dont think it's the case here.
So do someone have a solution for this or know the command to activate in the keybindings.json file?
Bind the list.select event to enter in your keybindings.json
{
"key": "enter",
"command": "list.select",
"when": "listFocus"
}
I'm using VSCode as my text editor. I'm curious, is there a keybinding for centering the editor window on the cursor, when the window is a lot of lines below/above it such that it's not visible on the screen? I've tried looking at the default keybindings by going to FIle > Preferences > Keyboard Shortcuts, but I see no such options for centering the window.
There is no such keybinding / command built-in.
I couldn't stand that either, so I created a VSCode extension. You can find it and install it here on the marketplace. The default shortcut is CTRL + L.
If you are using vscodevim, zz should work.
If you want to always keep the cursor on the center, you can change the setting Cursor Surrounding Lines to a really high number (100 is ok) and that should work.
As #kwood put it, there is an extension Center Editor Window in the marketplace that meets this end.
I would like to make an answer here, to complement that -- even the extension's author did not explicitly state in the marketplace page -- if you would like to change the default key binding (Ctrl+L), you may try put the following lines in the keybindings.json for the keyboard bindings.
{
"key": "cmd+k cmd+c",
"command": "center-editor-window.center",
"when": "editorTextFocus"
},
The above command sets ⌘ Command+K, ⌘ Command+C as the keyboard shortcut.
Apart from that, you may set
"center-editor-window.threeStateToggle": true,
in the settings.json for VS Code settings so that it will switch among three states (center, top, bottom) instead of one (center).
In IntelliJ IDEA, one of the more helpful commands I've found is 'Shift-Enter' - it effectively moves the cursor to the end of the line, and starts a new line, thus not affecting the text on the current line.
I'd like to re-create this in Atom, but I can't seem to figure out how one would go about doing so. It doesn't look like you can have multiple editor actions for a given key combination, and I'm not sure if I simply can't find the esoteric editor command I'm looking for.
How can I recreate the behavior of shift-enter in IntelliJ for Atom?
As it so happens, I stumbled across the shortcut: You can use cmd-enter to do the same action. I'm not sure what the underlying command is, but I hope this is helpful to other people!
You can recreate this behaviour by adding this to your keymap:
'atom-workspace atom-text-editor:not([mini])':
'shift-enter': 'editor:newline-below'
Detailed answer;
Freshly open atom editor
Open Keymap option
Copy this and paste this;
'atom-workspace atom-text-editor:not([mini])':
'shift-enter': 'editor:newline-below'
Click save and close the file
Press Shift and enter, Now you'll be able to form a new line below the line you currently in are regardless of the place you are typing in.
I regularly use ctrl+backspace in Sublime 3 to delete a whole word, but recently it stopped working. Nothing happens when I try to use it.
I have tried mapping it in Key Bindings - User as
{ "keys": ["ctrl+backspace"], "command": "delete_word", "args": { "forward": false } }
but still no luck. Have also checked that it is not caught by AutoHotKey or other programs running in the background.
Anyone else having the same issue with Sublime 3? Any ideas how to fix this?
Thanks in advance
Check out the FindKeyConflicts plugin, available via Package Control. Once installed, open the Command Palette and type findkeycon until the FindKeyConflicts options appear. Choose All Conflicts and hit Enter. Once the new tab opens and is populated, search in it for ctrl+backspace and see if anything comes up. Once you find the offending plugin, you can use PackageResourceViewer to edit the appropriate .sublime-keymap file and change that key combo to something else.
Good luck!
I'm testing out Aptana Studio to do some javascript development I want to know if there is a shortcut to delete a whole line. Or if there is a way to create some kind of macro to do it.
I am running windows, and I know that I can click Ctrl+Shift+Del but that doesn't actually do what I want it to do. In VS when you click Shift+Del it doesn't matter where the cursor is on the line it will delete the whole line.
To do the same in Aptana I need to:
Click Home to get me to the beginning of the line
Click Ctrl+Shift+Del to delete the content of the line
Click Ctrl+Shift+Del to delete the line
This may seem small, but I do this action all the time in VS and I've grown accustomed to it.
Anyone have any ideas to help me out?
I just figured it out:
It's quite simple: Ctrl+D
Also if you want to change the key binding you can
Go to menu Window -> Preferences
Go to General -> Keys
Find Command 'Delete Line' and then bind it to your desired key combo(like Shift+Delete)