How does one open a current tab as a new window while using a shortcut in Visual Studio(2017)?
I know an open tab can be dragged out of the IDE and be kept as it's own window, but a shortcut for this action could be quite handy.
You can assign a keyboard shortcut to the Window.Float command to open a current tab as a new window.
You can use ctrl+Tab...It wil show all the tabs you opened ..From this you can select .
Related
Is there any default keyboard shortcut to close all tabs except the active one? It can be done by right-clicking the tab and choosing Close Others but I'd like to do this using only my keyboard.
ctrl+shift+a and write Close Others. Select the one with Editor Close Actions.
Or assign it your own shortcut.
Open Settings > Keymap. Search for Close others (or find it under Main menu > Window > Editor tabs.
It's not possible to access the tab context menu using the keyboard.
There's an open issue against IntelliJ for this.
Their suggestion is to add that action (tab > close others) to a quick list and you can then invoke the quick list action via a keyboard shortcut.
What I actually want to do is to view different files in a some project on different screens.
If they are in different windows, I can easily drag one window to another screen.
It's fine if there are other ways can do this. I'm using windows7.
You can drag the editor tab to another screen and it will open in a separate window. See the Detaching Editor Tabs help section for details.
Shift+F4 does the same:
The shortcut can be changed here:
You have to add a new keyboard shortcut in your keymap.
The action is called Open In New Editor Window
Then when searching for a class using Ctrl + n (go to Class...) or Ctrl + e (recent files)
instead of opening the Class in the same window by pressing Enter
you can open it in a new window using your own keyboard shortcut (Shift + Enter in my case).
Right-click on tab.
Select Move Tab to New Window option.
I have recently removed tabs from my IntelliJ setup, because with all the features available to navigate between files, who needs them?
The issue is, the normal way of detaching an editor window would be to drag the tab onto another screen (or area). There doesn't appear to be anything in the key mappings for detaching an editor window. Is there a way of doing this via the keyboard?
The keyboard shortcut your are looking for is SHIFT+F4 (the action assigned to this shortcut is called Open Source in New Window. When you invoke this action the currently opened tab (file) will be opened in new editor window. However the file will remain opened in the main window too, but I believe that this is as close as you can get to the functionality you describe, at least for now.
Option 2
Open the "Open class" dialog using CTRL+N search for a class you want to open in detached window and hit CTRL+SHIFT+ENTER. That will open the class in a new editor window.
Unfortunately this seems to work only for Java classes and not for other files (CTRL+SHIFT+N dialog). I created a bug report for the last problem, so if you think it might be useful, feel free to vote for it.
Say I have a Java class, and navigate to another method by CTRL + CLICK .. The new file opens, in a tab that is positioned to left of the current one. Why? It should open to the right.
Is this a bug? It goes against any other known ways of opening new tabs, like Chrome, Firefox, etc. Is it possible to alter this behaviour?
I would like it to open the tab either at the right side of the current tab, or at the end of the right side.
If you want to open a new tab at the end of the right side, now IntelliJ IDEA (mine is version 2017.2.4) offers you the option.
Right click at the tab bar and select "Open New Tabs At The End" option.
UPDATE (November 2019)
If you want new editor tabs to be opened at the end, the latest IntelliJ IDEA versions have the dedicated option "Open new tabs at the end" for that in the settings:
Settings > Editor > General > Editor Tabs
Screenshot taken from IntelliJ IDEA 2019.2.4 (Ultimate Edition)
This behavior is by design, otherwise if you follow the link in the editor and the new tab opens on the right, after closing this new tab you will be navigated to yet another editor tab on the right instead of returning to the tab from where you started.
This breaks the workflow when you navigate with opening a new tab and want to return back by closing the new tab. It was decided to open new tabs on the left when Activate right neighbouring tab option is enabled.
If you don't like this behavior or want to suggest a better solution, welcome to YouTrack.
I'm trying to find a nice VS feature "Track Active Item in SOlution Explorer" analog in IDEA. For those who doesn't know - when I switch between files in the main area, VS will highlight the corresponding item in Solution Explorer ("Projects" pane in IDEA).
Since 2020.1 version the option is called Always Select Opened File:
For the previous versions:
In the Project View there is Autoscroll from Source option when you click on the "gear" icon:
In Rider 2020.3
Up Arrow button is Open file with single click
Down Arrow button is Always select Opened file
Look on left top of Rider, Right click on File System
Select Always select opened file