New to VSCode, can't disable sidebar - powershell

I am new to VSCode, long been a holdout with Powershell ISE. I am in a situation where I am doing more with PS7, so have no choice but to use it. The one thing that I cannot seem to find is a way to permanently disable the sidebar. Every time I run a script the stupid thing pops up, and I have to hit CTRL+B to close it. I have tried going into Powershell language specific settings, but the only option I see is sidebar.location.
Is there any way to permanently stop this from popping up?

Here is the solution:
go to settings
search for Debug: Open Debug
choose never open

Allow me just say this. I too use VSCode, Sapien's PS Studio, and the ISE more than the previous two, but also use PowerShell v7.
So, FYI... You do have a choice, You can use PowerShell v7 from the ISE. I do this every day. Well, it's a workaround to do so, but it works just fine.
Here is one of the ways to use PowerShell v7 in the ISE.
Using PowerShell Core 6 and 7 in the Windows PowerShell ISE
The other way I use it is just shelling/branching out to it as needed.
Yet, your question is really a duplicate of this Q&A.
Is there a shortcut to hide the sidebar in Visual Studio Code?
And these potential answers...
you can hide the activity bar by setting up your own keybinding
(code.visualstudio.com/docs/customization/keybindings) for
workbench.action.toggleActivityBarVisibility
and or
In the VS code version 1.43, you can hide or show the side menu or
activity bar by going under the 'VIEW' tab in the nav bar in the top
margin of VS CODE(called the 'Menu Bar'). Go to View => Appearance,
there you can check or uncheck different nav bars to show/hide each
one.
If you have the top bar (Menu Bar) currently hidden press 'alt' key to
bring it back then follow above instructions to check it to keep it
there permanently if desired.
The thing to remember though is, that sidebar is your file/project explorer and as such critical for normal development. It's how you get to all your files. Sure, you can still get to them using F1 and type a name, but that's kind of painful, vs scrolling to find what you need or opening multiple files in a project at once.

Related

In VS Code online how do I get back to the address bar?

Whenever I use Visual Studio Code in the browser (for me that’s always at GitHub.dev) I can’t figure out to put the focus in the address bar using a keyboard shortcut ( typically I want to do this so I can get back to GitHub.com). Usually I use CMD-L to put the focus in the address bar but it seems that gets intercepted by VSCode.
Surely I can’t be the only one frustrated by this? And idea how to put the focus back in the address bar using a keyboard shortcut?
I'm frustrating the same problem. I now use "Open Permalink in Github" from the command pallet but there might be a better way.

VS Code multiple taskbar icon

If I have more projects opened, is there a way to have them separated in the Windows taskbar? Until recently I was using 7+ Taskbar Tweaker to achieve this, but that program stopped working after a Windows update. Does VS Code have such a checkbox somewhere to not group icons in the taskbar but to have them separated? I don't want this for all the applications, only for VS Code.
For better understanding I attach a picture. What I would like is to have that many items in the taskbar as many instances open, not to be merged in one taskbar icon.
I don't know if what you are asking is possible, probably if what you want to do is to identify each project and not get confused, you could use Peacock.
https://marketplace.visualstudio.com/items?itemName=johnpapa.vscode-peacock
Right-click taskbar
Taskbar settings
Combine taskbar buttons > Never (or "when taskbar is full")
Option
How it becomes
you can change combine taskbar to never to separate windows on taskbar in windows taskbar settings.
There is no way to set this in Windows, but the 7+ Taskbar Tweaker has that possibility. Since the time I asked this question, 7+ Taskbar Tweaker was updated and now works perfectly. All good, THX.

How can I set the default option in Visual Studio Code's Quick Open View?

Up until now I've been using Ctrl+Q to trigger View: Quick Open View. The first option was Explorer, so if I Ctrl+Shift+F to search something I return the Explorer back to the sidebar by Ctrl+Q only.
Today, the first option changed and I have no idea why. It's set to an extension's sidebar view.
If I disable it the first option becomes Bookmarks. How can I tell VS Code I want Explorer to be the first option, like it's always been?
See https://github.com/microsoft/vscode/issues/90232
It was a regression in v1.42 that is due to be fixed in the v1.42.1 recovery update.

How to wrap line in PyDev's interactive console?

Each time I want to view a long output line, I have to drag the horizontal scroll bar. Is it possible to set word wrapping in PyDev's interactive console (not editor)?
Unfortunately no, it's not currently possible to enable word wrapping in the PyDev interactive console.
You may report this as a feature request in https://www.brainwy.com/tracker/PyDev (but even better would be providing a pull request for that -- see: http://www.pydev.org/developers.html)
It is now possible as of PyDev 6.2. By default it is not enabled. To see the icon that you have to click to enable visit this. For the possibility that the link disappears, go to the console tab and you will want to look for an icon which has a yellow "left-turn" arrow and click that.

Any tips on how to organize Eclipse environment on multiple monitors?

I can't find a good way of putting Eclipse windows on two monitors. Currently I just detached (clicked on a header and dragged) a few windows to a secondary monitor (package explorer, console, and outline) while leaving primary monitor with maximized source editing window.
It works pretty well except few annoying issues. Detached windows are not in focus while you are editing your code. Which means that, for example, last build shortcut (Alt-Shift-X, Q) doesn't work because it can't find build file (because package explorer is not in focus). Also "Selected resources" option in a file search menu is not picking up current package selection.
So I was wondering is detaching windows a right way to go? Do you have any better solutions so at least package explorer stays in focus?
Thanks.
PS. Btw "unable to find build" error started showing up only in 3.4 ver for some reason.
In the Eclipse Helios (currently 3.6.2) I found very useful the use of another window to bring up multiple documents in different screens.
in the main menu, go:
Window > New window,
and drag it to the screen you prefer. Double click in the filename on the editor and will maximize the editor's window.
I hope i helped.
Kyr.
PS: If you want to maintain both windows when you closing Eclipse, don't close them one by one. Instead go: File > Exit.
I use Ultramon to spread my Eclipse across two monitors.
I have the left hand side devoted to the code and the right hand side to the Project Explorer, Search, Console, Ant and Outline views.
This way I get focus to all of my Eclipse stuff when I click on it in the taskbar or alt-tab. I can also overlay another window (usually my browser or a trace viewer) on the right hand monitor. I use SemTop to pin the overlayed window if I want to code and read some reference at the same time (This is where shortcuts keys come in handy).
So I can look at code and StackOverflow at the same time ;)
Ultramon
I split the eclipse environment over two monitors (both running at 1600*1200)
on the left I have the main coding window maximised with the outline down the right hand side.
On the second monitor I have the Junit window, Problems, Console and the package explorer
I have the same layout duplicated for all the perspectives that I use.
I have never used the Alt-Shift-Q short cut but I have found the Alt-Shift-X, T shortcut for running junit works fine when I am focussed in the main coding window .
Possibly have the package explorer on the same monitor as the coding window?
I have a widescreen primary monitor and a non-widescreen secondary monitor. The layout on my primary monitor is broken into three columns: column 1 contains the package explorer in the top half and the outline, hierarchy and search results views in tabs on the lower half. Column two is code, and is about two and a half times wider than the other two columns. (Since everybody has widescreen monitors at my office, we've standardized on 100-character lines instead of 80.) The third column has the debug view at the top, somewhat small; the variables, expressions and JUnit views in tabs below that, taking most of the vertical space; and a small breakpoints view below that. My secondary monitor has two torn off windows: the console takes up most of the screen, and below it I have a smaller window containging the problems and history views in tabs.
My only gripe is when I remote desktop in from my single-monitor setup at home: the two windows on the secondary monitor move over to the primary one. I have a "One Screen" perspective which I use in this scenario to rectify that, but when I'm back at work and switch to the dual-monitor perspective, I have to manually move the windows back over to the other monitor. I wish Eclipse would just leave them over there, but I can't see any way to make it do that.
I have my Package Explorer and Code on my primary monitor and the Console on my secondary monitor. I do this by right clicking over console tab and selecting Move.. then View.
This way I am able to drag, drop and resize the console window.
Hope this helps!
I did this by extending my eclipse to both monitors, in windows you can make your screens extended by holding win key and tapping P,
Then, selecting my left monitor as the main one I dragged the right side of the eclipse window to cover the other screen all the way. then made eclipse into three columns. Now my main monitor is dedicated to code editor and console and package explorer are on the other one! when you have a whole monitor for your code it always helps to use cntrl+{ and have a second vertical column for viewing the same file, or dragging the tab of another file to the side of screen to view both in the same time.
Finally I just saved my work from window > save Perspective As
I can switch between my normal and dual monitor perspective whenever I'm not in the office
I've reduced (but not eliminated) the need for the package explorer to always be showing by using Ctrl+Shift+R in eclipse, this pops up a filter-as-you type window that makes switching between files which you remember the name of easy, as well as accepting wildcards to make it easy to find files you partially remember the name of.
I keep source on my main screen and outline tasks and LogCat (android) on my secondary screen, if I find i'm reading a lot of web content i fire up my laptop via synergy as an independent third screen, it's not ideal but it works.