How to toggle between split layout with multiple editors and just one editor using the full screen in vscode? - visual-studio-code

After working in a multiple column layout it is nice to be able to focus on one file momentarily using the entire application space. Then, returning to a column view.
In Slick-Edit this is Window / Zoom Toggle.
In VSCode, moving between multiple columns to 1, and then back to multiple loses editor groupings.

My approach for this scenario is using CMD+KO to Open Active File in New Window. If you close the window the file will still be present in your editor group.
There are some hiccups: I prefer a maximized window over full screen mode, but that will open a new, non-maximized window. In full screen you can prevent that, but will have to use CMD+W twice to get back to original view.

Related

How to switch between tabs only in the active editor group

In VS Code, whenever I'm in the split view (when I have multiple editor groups) and want to switch tabs with ctrl+tab, the tab switches fine until I reach the last tab on that active window (editor group). Then, instead of looping back to the first tab, it switches to the other split view window (editor group) instead.
I tried to see if there was any setting to disable this behavior but I couldn't find anything. Duplicating the other window instead of using split view works but isn't the best for my workflow.
Does anyone know of any setting to change the behavior so that it goes back to the first tab instead of switching to the other split window?
Note: I cannot reproduce this on Ubuntu.
For me, I can focus editor groups (what you are calling "splits") by number by using ctrl+<number>, or by directional navigation using ctrl+k,ctrl+<direction>, and open a quick cycle popup to cycle between editor tabs in the focused editor group by using ctrl+tab and ctrl+shift+tab. I can also focus editor tabs in an editor group by index in that editor group using alt+<index>.
For more similar info including default keybindings on other OSes, see Is there a quick change tabs function in Visual Studio Code?.
What you are probably interested in is the distinction between the following commands:
View: Open Next Editor (bound by defaut on Windows and Linux to ctrl+PgUp)
View: Open Next Editor in Group (bound by defaut on Windows and Linux to ctrl+k,ctrl+PgUp)
The first is for cycling through editor tabs in all editor groups (which is the behaviour you don't want), and the second is for cycling through editor tabs in the currently focused editor group (which is the behaviour you do want, and which has no default keybinding).
If you don't like the default keybindings, just edit them to your liking (edit keybindings for the workbench.action.nextEditorInGroup command).

How do I make the output window's content always scroll to the bottom?

I came from PyCharm, and starting in VSCode, when I print a lot of content in the output window in VSCode, the output window will stay from the output of the last executed content, and I need to scroll all the way down to see the last part of the new output content.
Is there a way I can set it up so the output window will automatically go to the bottom of the output content? I have googled and searched stackoverflow, without any luck.
Here is some visual to show what I mean
I need to manually scroll down to see the last content
Two things to try:
In your second screenshot, there is a padlock in the top right of your output window. That enables/disables auto scrolling. You currently have is disabled. Try enabling it.
There is a setting called output.smartScroll - I wonder if disabling that might achieve what you want (if you are clicking in the output box at least).

VS Code: Focusing the current editor

Let's say I've got the following scenario:
Program maximized with "Explorer" tab and 2 editor tabs open
(i.e. on windows) I want to peek some website so I split half screen to the browser, half to VS Code.
I want a hotkey that hides the explorer, reduces the size of the unfocused tabs and focuses the main editor tab. Does a think like that exist (or any addon does that?).
By default in VS Code, Ctrl+B opens/hides the sidebar, of which the File Explorer is a part.
Also by default, when the main VS Code window is resized, the editors also resize to occupy the same proportions of the viewport.
workbench.action.focusActiveEditorGroup, the command that focuses the most recently used editor group, doesn't have a keyboard shortcut assigned to it by default, but one can be assigned to it.

How to save vertical space in eclipse by removing status bar, quick access and splitted view controls?

Here my eclipse window. I want to save all these space in order to gain vertical visibility (for my text editor). And I am unable to find the way to do it.
I'm pretty sure you cannot disable either status bar nor toolbar. There is kind of solution though:
You can open a file and drag its tab with file name outside of eclipse window so it is detached from the main eclipse window. Then you can maximize this window and look on the code in kind of full-screen mode.

Changing number of rows of tabs visible in NetBeans

There are times when I have a decent number of source files open at once. Is there a way to change the number of rows of tabs that are visible while working in NetBeans?
Also, I have a dual monitor setup here. I could span NetBeans across the two monitors if it were possible to have multiple NetBeans editor windows open at the same time. This is something that I use in the VS Express editions. I tend to group my source files on one monitor and the designer windows in the other. Can I do this in NetBeans?
for versions 8.0.2+:
Tools -> Options -> Appearance -> Document Tabs -> Multi-row tabs
You can also maximum row count if you wish (the default is 3).
There are 2 way's I have done this:
Drag a tab from the editor panel to the side of the editor window until the red outline shows a rectangle running from top to bottom. Drop the tab there and you get another editor pane. Opening from Project or Files will still use the original panel, but you can drag tabs between the panels.
Right click on a tab and choose "Undock Window". This will create a top-level window independent of the main NB window.
When you create files with keyboard shortcuts (eg, Ctrl-N for new file) they will open in the current panel. Likewise, navigating to other files (eg, Ctrl-Shift-B for go to source).
It's not perfect though. Some keyboard actions will dump you back to the main window, then it's Alt-Tab or fiddle with the mouse to get back.
You can control the number of rows of Tabs in Netbeans by going to (on Windows):
Tools>Options>Miscellaneous>Windows> check the multi-row tabs checkbox.
See the maximum row count with the radio button and set your number.