With ctrl + w you can close a "tab" in eclipse, like in most modern browsers. So, is there an equivalent to ctrl + shift + t (in Firefox) to bring back a recently closed tab?
If not, is it possible to recreate something like that in a custom profile?
I am programming in Flutter but as a viewer I am using the web browser (not Android console or custom) below I leave the image
Ok, so to compile each change you press CTRL + S and then I must go to the terminal and press the R key to be able to refresh the changes
but this in development takes time away from me because I have to go to the end to press the R for each change.
Is there a way that pressing CTR + S and automatically hits the R key in terminal?
I just fixed it. Just press CTRL + F5, a new browser opens, then only by pressing CTR + S the changes will be updated.
Is that possible to open the file explorer when mouse hover on file explorer icon and close when it leaves the section?
when mouse cursor leave the file explorer section it auto close . is this kind of settings available in vscode?
As of today such a setting does not exist. You can subscribe to this open issue on the official repo for potential updates.
This extension will allow you to close the sidebar by clicking in your editor groups. I have not tested it.
Just press ctrl + B on your keyboard and explorer section get hide. And to get it back you have to press ctrl + shift + E or click on file explorer icon in activity bar
I am trying to open a tab in a new window in Visual Studio Code so I can move it to another screen. If I drag the tab the other screen, a file is created. Is there a shortcut to open a tab in a new Visual Studio Code window so I can move it to another screen?
On Windows and Linux, press CTRL+K, then release the keys and press O (the letter O, not Zero).
On macOS, press CMD+K, then O (without holding CMD).
This will open the active file tab in a new window/instance.
This is a very highly upvoted issue request in Github for Floating Windows.
Until they support it, you can try the following workarounds:
1. Duplicate Workspace in New Window [1]
The Duplicate Workspace in new Window Command was added in v1.24 (May 2018) to sort of address this.
Open up Keyboard Shortcuts Ctrl + K, Ctrl + S
Map workbench.action.duplicateWorkspaceInNewWindow to Ctrl + Shift + N or whatever you'd like
2. Open Active File in New Window [2]
Rather than manually open a new window and dragging the file, you can do it all with a single command.
Open Active File in New Window Ctrl + K, O
3. New Window with Same File [3]
As AllenBooTung also pointed out, you can open/drag any file in a separate blank instance.
Open New Window Ctrl + Shift + N
Drag tab into new window
4. Open Workspace and Folder Simultaneously [4]
VS Code will not allow you to open the same folder in two different instances, but you can use Workspaces to open the same directory of files in a side by side instance.
Open Folder Ctrl + K,Ctrl + O
Save Current Project As a Workspace
Open Folder Ctrl + K,Ctrl + O
For any workaround, also consider setting setting up auto save so the documents are kept in sync by updating the files.autoSave setting to afterDelay, onFocusChange, or onWindowChange
When I want to split the screens I usually do one of the following:
open new window with: Ctrl+Shift+N
and after that I drag the current file I want to the new window.
on the File explorer - I hit Ctrl+Enter on the file I want - and then this file and the other file open together in the same screen but in split mode, so you can see the two files together. If the screen is wide enough this is not a bad solution at all that you can get used to.
With Visual Studio 1.43 (Q1 2020), the Ctrl+K then O keyboard shortcut will work for a file.
See issue 89989:
It should be possible to e.g. invoke the "Open Active File in New Window" command and open that file into an empty workspace in the web.
If the accepted answer isn't working for you, for example, your shortcut key may have been changed to do other things. You can launch the command input by Ctrl + Shift + P, then type 'new window' and you will see the result File: Open active tab in a new window, and select it.
Just an update, Feb 1, 2019: cmd+shift+n on Mac now opens a new window where you can drag over tabs. I didn't find that out until I when through KyleMit's response and saw his key mapping suggestion was already mapped to the correct action.
Press Command+K (wait, it will wait for pressing any key which you can see in the below bar) then press O.
So, it is Cmd+k+ O(space represents little wait).
I found a way to achieve the "Duplicate Workspace in New Window" workflow from #mbomb007's workarounds via the command line:
Normally code --new-window <path-to-folder> will not open a new window if that folder is the root of an existing window.
code --new-window <path-to-some-file> followed by code --add <path-to-folder> does the trick. I put a 1s delay between those commands.
Issue #2686 was closed with a recommendation for users to use the "Duplicate Workspace in New Window" workflow, but didn't include a CLI solution. I would have posted this workaround there, but it's locked.
I wanted to use my second screen for viewing a preview of a document. None of the suggestions worked well since the preview was not updated in the second window, even when the workspace was duplicated and autosave enabled.
My workaround was to simply increase the size of the window to span both screens, and use the standard split tab.
To expand one window across two screens, I recommend Microsoft PowerToys. The FancyZones feature can be configured to allow zones to span across monitors, so a custom canvas can be created to quickly expand a single window to both screens.
You can also hit Win+Shift+[n]. N being the position the app is in the taskbar. Eg if it's pinned as the first app hit WIn+Shift+1 and windows will open a new instance and then you can drag the tab over to the new window.
Most convenient workaround for me so far.
If you are using the excellent
VSCode for Mac, 2020
simply tap Apple-Shift-N (as in "new window")
Drag whatever you want there.
I just started to use PhpStorm and wonder how I can enter full view for a single file?
In NetBeans I could just double click on the file:
...then the full view for that file was shown:
After double clicking on the file again, the normal view is shown again.
Is this also possible in JetBrains PhpStorm?
This is not currently possible.
https://youtrack.jetbrains.com/issue/IDEA-82829 -- watch this ticket (star/vote/comment) to get notified on any progress.
(P.S. This IDEA-166351 looks the same .. so may be marked as duplicate of the first ticket at some point).
To be clear: hiding all tool windows is easy (double click on editor tab or Window | Active Tool Window | Hide All Windows -- Ctrl + Shift + F12 using Default keymap) -- it's "Maximize current editor tab and hide all other tabs" what is missing (absent feature).
Yes, also on JetBrains IDEs (PhpStorm, WebStorm, etc.) is possible to double click on an editor tab to hide the rest of toolbars and sections and get a full clear view of the editor; then if you double click again on the editor tab, you can return to your previous IDE disposition.
Also you can use Ctrl + Shift + F12 combination to hide/show all tool windows. (see here: https://www.jetbrains.com/help/phpstorm/2016.3/manipulating-the-tool-windows.html#d883741e144)