When I use VIM and I have 3 tabs, I use the keystrike <C-P> and it will complete a word in 3 tabs. When I use Textmate and I have 3 tabs, I use the keystrike ESC abd it will complete a word only in the current tab.
How could I complete a word in all tabs?
You can't. TextMate only uses the current file for completion.
Stick with Vim.
Related
In sublime text I used to use a shortcut that allowed me to tab through my multi selection and edit each element individually.
for example I would cmd+d a word then the shortcut would allow me to tab through each selection and edit them individually.
I haven't used sublime text in a month since I switched and can't even remember the shortcut I used to find the name of that action. so I don't even know if it was a plugin or a built in short cut.
is there a similar shortcut in vscode?
You can multi-select in VSCode using alt+click
(can be changed to cmd+click in "Selection -> Switch to Cmd+Click for Multi-Cursor").
To tab through your selections install the tab-through-selections extension and then use cmd+shift+u to start iterating (alternativley ctrl in Windows), then:
tab to go to the next selection
shift+tab to go to the previous selection
click anywhere to cancel iterating
Hope this helps :)
In sublime text I used to use a shortcut that allowed me to tab through my multi selection and edit each element individually.
for example I would cmd+d a word then the shortcut would allow me to tab through each selection and edit them individually.
I haven't used sublime text in a month since I switched and can't even remember the shortcut I used to find the name of that action. so I don't even know if it was a plugin or a built in short cut.
is there a similar shortcut in vscode?
You can multi-select in VSCode using alt+click
(can be changed to cmd+click in "Selection -> Switch to Cmd+Click for Multi-Cursor").
To tab through your selections install the tab-through-selections extension and then use cmd+shift+u to start iterating (alternativley ctrl in Windows), then:
tab to go to the next selection
shift+tab to go to the previous selection
click anywhere to cancel iterating
Hope this helps :)
I'm currently experimenting with VS Code, having used Sublime Text 3 for the last five years or so. In Sublime, I could quickly swap two lines by selecting them both and then doing Ctrl+T.
As far as I've been able to find, the only equivalent command in VS Code is Alt+↑/↓, which pushes the selected line either up or down, and would be excruciatingly slow unless the selections are very close to each other.
Is this still true as of 2019? Is this basic functionality really not possible in VS Code?
There is no built-in functionality.
You can use a combination of VS Code's multi-cursor selection and the Swap extension.
Select one line or lines
Select another line/lines while holding down Alt or CMD (for Mac)
Use the extension's swap shortcut
Via keyboard shortcut
Windows: CTRL+ALT+8
Mac: CMD+OPTION+8
Via command palette
"Swap"
You can customize the keyboard shortcut to be same as what you used in Sublime.
Is there a keyboard shortcut in Chrome Dev Tools to indent a block of code?
I'm used to using Command + ] in Coda 2, but that only switches panes in Chrome Dev Tools.
Highlighting the code (whether one or multiple lines) and hitting Tab is indenting all the lines with highlight for me. Hitting Shift+Tab will un-indent the highlighted lines.
The whole line does not need to be highlighted, just at least one character on the line.
Additionally, there are other shortcuts you can use in the DevTools editor which are documented here https://developer.chrome.com/devtools/docs/shortcuts#code-editor
I am accustomed to CTRL+TAB / SHIFT+CTRL+TAB switching to the next and previous tabs, respectively, in the order in which they appear on the tab bar. NetBeans does it MRU style, where CTRL+TAB will take you to whatever was the last file you were editing.
This often breaks my flow in that I need to keep tabbing and checking if I'm on the right file before continuing rather than just instinctively hitting CTRL+TAB+TAB+TAB because I know the file I want to go to is 3 tabs over on the tab bar.
The default CTRL+PAGEUP / CTRL+PAGEDOWN keymaps behave exactly how I want CTRL+TAB and SHIFT+CTRL+TAB to behave, but changing the mappings to CTRL+TAB don't seem to make a difference - it ignores my keymapping and continues using MRU.
How can I change this behavior?
Resolved the issue myself. The solution is to use AutoHotKey to map CTRL+TAB / SHIFT+CTRL+TAB to CTRL+PAGEDOWN and CTRL+PAGEUP, respectively. This will prevent NetBeans from hijacking CTRL+TAB / SHIFT+CTRL+TAB to use MRU despite them having been remapped.
AutoHotKey script below:
SetTitleMatchMode, 2 ; So that we can partial match window title
; Fix MRU in NetBeans
#IfWinActive, NetBeans IDE
; CTRL+TAB
^Tab::SendInput ^{PgDn}
return
; SHIFT+CTRL+TAB
+^Tab::SendInput ^{PgUp}
return
#IfWinActive
Hope this will be useful for someone!