I have two editors opened, one on the left and one on the right. How to switch between them? I tried Ctrl + 1/2/3 but doesn't work.
It works, using the 1, 2 keys above the letters (not the keypad). Events in the keyboard shortcuts panel are under workbench.action.focusFirstEditorGroup and so on.
You can also bind commands such as workbench.action.navigateRight and so on to move focus between panels.
Ctrl+Shift+P show all commands, search Preference: Open Keyboard Shortcuts and open it, then you can search the action or shortcuts.
for this problem,searchfocusFirstEditorgroup,you can see the shortcut,change as you like.then searchfoucusSecondEditorGroup and so on.
Related
I wonder, why doesn't xCode "act" as a normal editor? For example, when I press Ctrl+X, I'd like the current line to be copied-cut. When I press Shift+Tab I'd like the current selection to be shifted to the left, etc. That's the stuff most editors do by default.
How to make it do that?
Take a look at Preferences -> Key Bindings. Here you get a list of actions and their keyboard shortcuts - and you can change those keyboard shortcuts!
It's quite amazing how many actions there are, including a great number of familiar Emacs actions such as mark and yank. Many of them have no corresponding menu item; many of them have no keyboard shortcut by default. Some of them may be the things you are looking for, and all you need to do is change the shortcut if you don't like it. It is very possible that you'll find at least some bindings that you can use to make Xcode behave in a more familiar way.
I recently installed VsVim.
It's great, but I find myself constantly reaching for the mouse in order to switch between files.
Is there a built in solution? I cannot find a list of VsVim shortcuts anywhere.
Found the answer here: Tab/Window group movement: (Ctrl-W)(Ctrl-L), etc
Use gt or gT to go back and forth between tabs.
Also note that Ctrl+Tab works for cycling through tabs.
It seems to be implemented as a MRU-to-LRU tab stack, meaning that hitting Ctrl+Tab once will take you to the most recently used prior tab, and hitting Ctrl+Tab again will take you right back where you were.
There's a pop-up that displays the available tabs as long as Ctrl is held down, allowing you to choose a tab from the list.
Basically this is similar to classic MDI window tabbing.
I don't think this is part of VsVim, but rather a pass-through to Visual Studio.
Also as an addition to these ways of swapping windows I also use
ALT W then you can use the number keys to select a tab. this is kept in most recently used order, so selecting 2 will always go to the previous tab you were in.
The other thing you can use is marks. m<capital letter> will set a mark that jumps across files ( lowercase marks work within a file ). To jump to a mark use `< mark letter >
First if you are talking about tabs gt and gT work for Going to next/prev Tab.
This question is pretty old, so the <C-w> shortcuts might not have been implemented yet, but even in Vim I never did like those shortcuts. As I substitute I added some leader bindings using the standard hjkl navigation keys. My leader is mapped to spacebar, so these are really easy to use. I also rebind tab navigation to [b and ]b, which are buffer navigation bindings in one of Tim Pope's Vim addons:
let mapleader="\<Space>"
" Window control/navigation leader mappings
nmap <leader>h <C-w>h
nmap <leader>j <C-w>j
nmap <leader>k <C-w>k
nmap <leader>l <C-w>l
nmap <leader>c <C-w>c
" Tab cycling
nmap [b gT
nmap ]b gt
I have been a long time user of the standard Mac Terminal. Decided to experiment with iTerm2 after hearing good things about it from my colleagues.
One of the more useful features I am seeing on iTerm2 is its split panes (much like vim split buffers).
In vim, I can move between split buffers using Ctrl+W+arrowkeys. Is there a keyboard shortcut for iTerm2 to move between panes as well?
From the documentation:
Cmd] and Cmd[ navigates among split panes in order of use.
Cmd+opt+←/↑/→/↓ navigate similarly to vim's C-w hjkl.
⌘+⌥+←/↑/→/↓ will let you navigate split panes in the direction of the arrow, i.e. when using ⌘+D to split panes vertically, ⌘+⌥+← and ⌘+⌥+→ will let you switch between the panes.
there is configuration in the following way:
Preferences -> keys -> Navigation shortcuts
the 3rd option: shortcut to choose a split pane is "no shortcut" by default, we can choose one
cheers
I was using Terminator before, so I found it convenient to re-map Alt + arrow-key to switch between the panes. This can be done in Preferences -> Keys -> Key Mappings - press the '+' button to add a mapping. Also, in my case such a mapping was already defined in Profiles, I simply removed it.
Spanish ISO:
⌘+⌥+[ goes left top
⌘+⌥+] goes bottom right
I wonder what is the keyboard shortcut for these two combo boxs and specially the right part which list all the members of current class and is very handy for navigating a large class.
I tried to figure it out myself but I do not know the exact names to search for it.
That whole thing is called "Navigation bar" (Window.MovetoNavigationBar) and can be activated by default by pressing Ctrl + F2. There doesn't seem to be a shortcut for the right side of the navigation bar, so pressing the short cut key always takes you to the combo box on the left side. You can use Tab to jump between the combo boxes.
The keyboard shortcut is Ctrl + F2 which takes you to the left-hand combo. If you hover over each one in turn (at least in VS2k8) it shows you a tooltip which identifies the two combos as "Types" and "Members", respectively.
Pressing Tab will take you to the right-hand combo and Ctrl + ↓ will expand the combo for you.
Alternative Resharper approach #1
"Go to file member" which is "Alt+\" .
go to link for advanced features
Alternative Resharper approach #2
"Go to Next/Previous Member" with Alt+Down or Alt+Up
this one is very handy and my favorite :
In the Textmate code-editor I use the Escape-key, for word completion, alot.
Is there a way to bind another key-shortcut to its functionality ?
(ps: my CAPSLOCK is already CTRL)
A much better way to do this (and this applies to all Mac apps in general) is to
Open System Preferences > Keyboard & Mouse > Keyboard shortcuts
Click the + sign at the bottom
Choose TextMate from the application menu
Type the exact name of the menu command for next completion and previous completion
Now type the shortcut you want to use and click the Add button
To remap the esc key you have to copy
/Applications/TextMate.app/Contents/Resources/KeyBindings.dict
to
~/Library/Application Support/TextMate/KeyBindings.dict
and then edit it, preferably using TextMate :) as Property List Editor messes up the codes.
Look for nextCompletion and previousCompletion and replace their values with whatever suits your needs best. For example, you could replace \033 (code for esc) to \t (->|).