Is there any way (or plugin) that would allow me to modify how the windows are embedded into eachother? For instance, let's say I have a window like this:
I want to be able to press a hotkey (e.g. Ctrl + Right Arrow) to make the current window split and go to the right, like this:
I'm basically envisioning a situation just like the later Windows OS' where you can press Win+Arrow to move windows around the screen...
Yes, there is an easy way.
Just go to Tools --> Options --> Environment --> Keyboard.
Now there are essentially four commands that you can bind to your keyboard shortcuts:
Window.NewHorizontalTabGroup
Window.NewVerticalTabGroup
Window.MovetoNextTabGroup
Window.MovetoPreviousTabGroup
You can even assign your own shortcuts to
Window.Float
Window.FloatAll
Window.MoveToMainDocumentGroup
as well if you want.
The Window.Move... commands are in a way the "undo commands" of the Window.New... and Window.Float... ones.
You can do it with the Window - New Vertical Tab Group menu command or assign a shortcut to the Window.NewVerticalTabGroup keyboard command.
Related
How can I assign a hotkey to maximize the edit window?
Basically I want the equivalent of:
switch to edit window + minimize all side panes
or at least just minimize all side panes (and leaving the menu and toolbar as is)
NOTE: this is different than full screen, I do not want to change the size of the VS window itself.
I need this on Visual Studio 2017 / 2019.
Short of some sort of macro I thing the best way is probably like this:-
Setup the windows in VS as you want them to look
Save that as a layout.
Assign a hotkey to the Switch to layout command.
Hot Windows extension provides shortcuts to hide and show all tool windows (e.g. Shift+Alt+Ins).
Is it possible to scroll horizontally with the keyboard/mouse wheel in Visual Studio? I can do this via Ctrl + Up or Ctrl + Down, or just use the mouse wheel, for vertical scrolling, but I could not find out how to scroll left/right via Googling. I'm using Visual Studio 2017 RC.
edit: Just came across this, but it seems to be only compatible with VS2015. When I tried to use it with VS2017, it errored out.
One approach is to directly modify IWpfTextView.ViewportLeft for the active view. You can use the following two commands Scroll the current text editor horizontally for my Visual Commander extension and assign to them shortcuts like Ctrl+Right Arrow and Ctrl+Left Arrow.
You can assign custom keybindings to the Edit.ScrollColumnLeft and Edit.ScrollColumnRight commands. To do so:
Open Tools -> Options -> Environment -> Keyboard
Show commands containing 'ScrollCol' (short enough to find these two)
For each command, set focus in the Press Shortcut Keys box and type your desired shortcut.
When you've found the keybinding you want, click the Assign button to save it.
In the image below you can see that I've set Ctrl+Alt+Right to map to Edit.ScrollColumnRight, and Ctrl+Left is already assigned to the Edit.WordPrevious command when in the Text Editor.
Maybe, if you click in the center button on the mouse and then navigate across?
You need to go manage entension and search 'slideScroller' extension. Downloand and install. It's done. After then scroll horizontally with shift+left Mouse.
Most OS X applications with tabbed interface allow using Cmd+Shift+[ and Cmd+Shift+] to switch tabs.
VSCode does not follow this. Is there a way to configure it to use these shortcuts to quickly switch to the next (towards right) and previous (towards left) tab.
This behavior is different from Ctrl+Tab behavior which shows a menu of most recent buffers. Repeatedly pressing Ctrl+Tab will keep alternating between same two recent buffers. But I would expect both Cmd+Shift+[ or Cmd+Shift+] to cycle through all the tabs, in right to left and left to right direction respectively.
You can bind every shortcut yourself if you want. Open you keybindings.json (via command palette or menu Code->Preferences->Keyboard Shortcuts).
Pressing cmd+k cmd+k gives you a little input field that prefills the correct JSON syntax.
The commands for switching tabs are called workbench.action.nextEditor and workbench.action.previousEditor
When I try to use the shortcut for moving lines up/down (Ctrl+Alt+Shift+↑/↓), it highlights the code and shows the tooltip message "Use Up/Down to move text line" but nothing happens. If however I try the same command via the menu bar (Resharper > Edit > Rearrange Code > Move Up) it moves the selected lines as expected.
I used to use this feature all the time so I find this bug very annoying. Apparantly, others also experience this (see comments for Resharper move line up down not working) but I haven't been able to find a solution for it. Resetting keyboard layouts and reapplying VS keyboard schemes doesn't work.
Has anyone been able to resolve this issue?
[EDIT]
Reason of this is issue (when you are logging to machine with VS and Resharper via Remote Desktop) is that Ctrl-Alt-Left Arrow/Ctrl-Alt-Right Arrow combinations are not sent to your virtual machine
There are two workarounds:
My first soultion (change combination see below)
You can use AutoHotKey script as stated in thread:
https://superuser.com/questions/327866/remote-desktop-sending-ctrl-alt-left-arrow-ctrl-alt-right-arrow-to-the-remote-p
[/EDIT]
Reason is
duplication of the same hotkeys which could be found in 'Shortcut currently used by:' combobox
Fix is
I described process for _MoveRight shortcut - for other shortcuts it works the same
STEP 1 Check for conflicting changes
seeImage
go to Tool --> Options --> Keyboard
in field 'Show commands containing' find your command (moveright in example)
click in field 'Press shortcut keys' press ALT + RIGHT ARROW
in field Shortcut currently used by you will find conflicting shortcut -
Edit.CompleteWord...
STEP 2 Now we need to delete this shortcut
in field 'Show commands containing' write Edit.CompleteWord
you should see ALT + RIGHT ARROW shortcut in field 'Shortcuts for selected command
click Remove button
STEP 3 Now we need to add our shortcut to _MoveRight function
in field 'Show commands containing' find your command (moveright in example)
click in field 'Press shortcut keys' press ALT + RIGHT ARROW
click Assign
On opening PhpStorm's Terminal Tool Window, I would expect to be able to run commands like Ctrl + Tab to switch terminal tabs, or Cmd + 1 to open the Project Tool Window, but my keyboard is stuck inside the Terminal.
Is there a way to release the keyboard from the Terminal so that I can return to regular commands? (Without using Option + F12 to hide the Terminal Tool Window.)
Switching between Terminal tabs can be done using the same shortcut as Editor tabs: Alt+Left/Right on Windows using Default keymap (on Mac it would be Cmd + Shift + [ and Cmd + Shift + ] (or whatever you have got there for Main Menu | Window | Editor Tabs | Select Next/Previous Tab -- you can verify/change it in your Preferences | Keymap)).
Project View tool window shortcut (Alt+1 on Windows or Cmd+1 on Mac) does not work indeed if used in Terminal.. but shortcuts for Favorites or Structure tool windows still work just fine.
Therefore I may suggest to jump to Structure via Alt+7 (Cmd+7 on Mac) first and then just use Esc to get into Editor). P.S. See if recording macro with such sequence will work for you (you can assign custom shortcut to it).
I'd suggest simply adding another keyboard shortcut for accessing the terminal. E.g. ⌘0
F12 is the default shortcut for Mac and Linux OS.
This shortcut will toggle terminal focus. The default F12 shortcut for Mac (dunno about Windows) will not.
You may need to restart PhpStorm to hijack ⌘0 or whatever you choose.
You can access terminal by Alt + F12 on Windows
PHPStorm and other products of Jet-brains are configurable to your liking. you don't need to learn new keyboard shortcut jus configure the as you prefer.
For example for me i use PHPStorm VS code and Sublime text editor for my coding daily.
So it is good to have same key-map on all of your IDES/Text editors
i am on mac and i use these key-map for all of the mentioned above
Command + ! => toggle Explore tab
Command + ~. => toggle Termina tab
Command + 2. => toggle console tab
So to configure any keyboard of your choice this on PHPStorm (macOs)
Hit Command + , and you will be on PHPStorm Preferences
Go to Key-map if you happen to know the current working shortcut on your PHPStorm
then on you right side after the search box there is a keyboard hit it and press the current working key let say by default toggling terminal is option + F12 (please note for some keyboard you need to add function key(fn) that will make it be option/alt + fn + F12)
Hope you will see terminal with keyboard shortcut at the right side, then two finger click/ right click hope you will have a popup menu to add new keyboard shortcut or remove the existing one.
Add your preferred keyboard shortcut first before removing the existing on (why ? since as soon as you remove the keyboard and you firstly got there via that keyboard shortcut the result will refresh and the thing will disappear from the view)
Note some of the new shortcut you prefer will be already in use that should not scare you away. just remove that and remap with a new binding later which you find useful for you.
Apply and ok then you are good to go !