Is there a way to open multiple Windows for the same Working directory. VS Code - visual-studio-code

I have a situation thats not a major issue but I feel is possible. Coming from a Video editing background, theres the need to work on multiple Monitors for various parts of your workflow.
I dont know if anyone is familiar with after effects or / Premier Pro where you can Drag your different pannels onto a new screen.
Example of what Im trying to Describe in Adobe Premiere
Basically Instead of "open to the side" opening in the same window -> can this possibly be opened on a new screen so they are both save-able and editable to the same working directory.

You can press Ctrl/Cmd + Shift + P to bring up the command palette and search for Workspaces: Duplicate Workspace In New Window

Related

Visual Studio Code - Tabs (editors) of the same project in multiple screens

Using multiple screens I normally place multiple classes (files) in different screens, this helps me a lot while refactoring, checking tests and comparing changes.
Visual Studio Code does not allow me to drag a tab outside the window and view it in (for example) another monitor.
I checked the documentation and plugins, but the only way I found, is to open two windows, pointing to the same project (folder) and put those in different screens.
I don't like this solution, that causes also some problem when I watch code changes using TypeScript.
Any suggestion?
I use Windows 10, latest version of VSCode.
A solution is to press CTRL+K and after releasing CTRL, press O.
This will open the current file in a new window.
There are few things I don't like about this solution:
- Drag and Drop does not work
- Create a new instance of VS Code resulting in (for me) 180MB of ram used
- To open the file it takes to me few seconds (quite slow)
- The file remains open in the original window as well
Update 20/03/2019:
There is a feature request you can track here:
https://github.com/Microsoft/vscode/issues/10121
And an explanation about why this is difficult to implement here:
https://github.com/Microsoft/vscode/issues/10121#issuecomment-345770248
Update 20/03/2019:
Another important side effect highlighted by #Mär is that:
the IntelliSense fails to establish references it had when the file
was opened in the window, where the entire project is opened
The easy way but with the same drawbacks. More ram and resources will be used. Is to wrap your project in a folder.
It's the best possible thing. As by now!
=> Duplicate the workspace.
Open the command pannel ctrl+shift+p or F1.
Then write dupl
You'll get that
That's it.
More
If you want to add more folder to the working space.
=> go to File then Add Folder To Workspace
You can add as many as you like.
 Also better more
You can open a new window (ex: ctrl+n)
And then go File > Add Folder To Workspace.
And start adding folders to your new Workspace. You can add any folder, that is already open or not. That's too way great. You can have all the needed folders for example in the second screen.
A little hack I used is to just stretch the editor window to fill both screens and split the view pane between the monitors such that both screens show just one open file.
This is a cheap hack that works without opening multiple instances of VSC.
It may not be the proper solution, but it works without eating up all my system memory.
I found the following way to work on multiple monitors (important: they must be the same size and resolution):
open a visual studio in windowed mode on the 1st monitor (in my case it is a left monitor)
move the window to the (left) top corner
stretch window to the 2nd monitor (right) bottom corner
split screen by clicking “split editor” several times
move the code sections separator to the edge between the monitors
This is old qestion, but such way can be useful for someone. It is not very convenient, but it works. The solution may have already appeared in the VS itself, but I didn't find it.
Visual Studio Code does not allow me to drag a tab outside the window and view it in (for example) another monitor
Actually, VSCode 1.57 (May 2021, 4 years later) will propose something close:
Improved editor drag and drop across windows
Support for dragging editors to other windows was improved in this release. You can now drag diff editors, custom editors and the entire editor group to another window to open the editors there.
My solution was to use Remote-ssh to connect to self and open in another window. This does take extra resources. But I find this comfortable as I don't need to create additional workspace.
For me on Ubuntu the solution was to create a project folder symlink and ope it in a new window (as it won't open the same folder in another window)

taskbars missing in NoMachine

I use NoMachine to connect to a remote Linux machine. Recently, my upper and lower taskbars have disappeared. The main problem is that, if I minimize a window, I now have no way of retrieving it, since it is typically iconized in the upper taskbar.
The problem occurs regardless of what computer I log in from. I've tried the following things, with no success:
Changed the display options to see if these taskbars were simply off the screen.
Delete the .nx directory in my home directory.
Uninstall and reinstall NoMachine.
Searched for the problem on Google and StackOverflow.
I've had this problem before, and I believe it resolved itself after a number of days, but I'd rather not wait and hope for something to change. Has anyone heard of this problem before?
Alternately, if the primary problem has no clear solution, is there any way of retrieving minimized windows within NoMachine without using the taskbar (e.g. can I access those windows through a keyboard shortcut or the right-click window)?
I've attached an image of my workspace. You can see the outer Windows taskbars, but typically there are two additional taskbars.
Image of my NoMachine workspace.
While I do not know the right solution to make the taskbar appear again, I think I have a workaround solution to retrieve minimized windows without using the taskbar. Switch to the fullscreen mode of NoMachine using Ctrl + Alt + F and then use tab key to switch between open applications. Once the desired application window is back in view/focus, you may switch out of fullscreen mode by using Ctrl + Alt + F again

Multiple editor windows with multiple tabs

Very often I work with multiple projects in MATLAB and have a group of files for each project that I access at one time. Having all files of all projects open causes a lot of clutter in the workspace. One can do this for one single set of files by docking which is well known.
Is there a way to tab projects, or have multiple MATLAB editors (for each project) open with multiple tabs in each (with the projects files). The question can be found here too. In the same vein, are there other code editors which can be used to perform the same?
Project1
file 1.m
file 2.m
file 3.m
file 4.m
Project2
file 1.m
file 2.m
file 3.m
file 4.m
Either in the same window, or in different windows.
Unfortunately I don't believe MATLAB can do that kind of project/file management for you, which is why I use Sublime Text 2. It's perfect for that kind of project/file management... and not to mention the awesome shortcuts and quick editing tools to help you code faster.
Check them out: http://www.sublimetext.com/. The one drawback is that it's nagware. It is free to use, provided you can bare the popups to buy a copy of the software every now and then. Once you buy it, the popups go away. Give it a try and see how it goes!
If someone still need a solution for that-
You can just drag a tab of one file to the side, or bottom of the space of the editor, like that:
And the result will be:
Now you can drag in the same way other tabs to the new tabs group, and you have two separate tabs groups (but one Editor window..). You can of course drag the middle edge line to the right-end, and work fully only with the first group, or drag it to the left-end and work fully with the second one.
Note for one drawback here- if the line is in one of the ends, you don't see the tabs status and files names of the hidden group, and if you forget that you opened some file there and try to open it again, you will not see it opened, or any change in the IDE, because the control goes to the already opened tab but you not see it.

Compare editors in eclipse

I sometimes work with 2 editors in eclipse (splitting screen vertically)
I know for starters that you can compare two files by selecting them from the navigator (Ctrl + Click for example) and then hitting compare or even with a keyboard shortcut
But i am wondering if there is a way in the current release to kinda bypass the compare window which always shows up and automatically select the active file from the editor on the left and the active file from the editor on the right just like in notepad++ (where i could just have two views and hit Alt + D there and automatically the files are compared)
Any help is appreciated, thanks
There is no such feature in Eclipse. Of course, you're always free to write a plugin that can do what you want. The learning curve is a little steep but overall what you're describing probably wouldn't be too much work once you got the hang of plugin writing.
Here are some links to get you started:
http://www.vogella.com/articles/EclipsePlugIn/article.html
http://www.vogella.com/eclipse.html
http://www.eclipse.org/resources/?sort=date&category=Plug-ins

Xcode/iPhone Development 6 months in - Annoyances

I've been iPhone programming for 6 months and come from a PC/Java/Eclipse background and still have a few annoyances with Xcode/iPhone programming I wonder are there any shortcuts to.
Is there any way to prevent multiple windows opening all the time in XCode?
a) When you click on the Errors/Warnings in the bottom right of the status bar build errors are shown in separate window. Any way to get these to show in the main editor?
b) Anyway to get debugger to appear in main editor.
I have a big screen iMac and it's still window hell on Macs.
When you come from Alt-Tab the Mac is a nightmare.
2) Anyway to get a toolbar item on the main editor to:
a) Open Console (I know CMD-thingy-R)
b) Open Break points (you have to open Debugger first then breakpoints)
I know there's keyboard shortcuts but I have only left hand free others on the trackball so any keys on right hand side of keyboard are too far.
I know you can add Finder toolbar scripts (just wondering if anyway to extend Xcode).
Are there utilities to extend Xcode? Scripts/Automator/Any Services I can setup to help.
Can you automate Xcode like you can with Windows/ActiveX/VBA
3) Limit lookups using CMD + double click.
If I double click on a variable to find its definition using CMD + double click it shows every occurrence of all variables with that name. (annoying it you name all you maps mapView)
Anyway to get it to limit to the current class or at least order so current class is first.
4) Find doesn't seem to loop backwards if result all above cursor position
I'm in a class and I hit CMD + F for find.
Find box appears.
I enter some text hit return.
It says I have x matches but only back arrow is highlight in Find
But when I hit < it does nothing.
I need to scroll to the top and redo the search.
If the text is both forwards and backwards then both < > are highlighted and it works.
is this a bug or a 'feature'
Missing Eclipse features
I have been looking at the User Script menu but was wondering how powerful they are?
5) any scripts around to generate source from members such as description: #property #synthesize
if I add a new member, run a script will generate #property/#syntesize and release in dealloc
7) any good sites for scripts?
SCM
Im having problems with SCM and Folders on HD under project Classes directory.
You get a library e.g. JSON. It usually comes as a folder. You copy it to the /Classes for your project. /Classes/JSON
I create a Group for the Library in Xcode under Classes group.
Classes
JSON
I drag the files from the folder into xcode into the JSON Group.
I add them to the SCM and icon changes from ? to A
but if I try and commit them it say folder /JSON is not under SCM.
Can you drag a folder into Xcode so that it AND its files get included in SCM?
Anyway to stop Xcode Help from being on top all the time.
I keep feeling like punching it and telling it to get out of the way! :)
I dont mind it open just not in the way once I've finished.
Yes I know I can Ctrl-W
Sites: the main site I use to learn Obj-C are :
stackoverflow.com
Google code Search - tonnes of full apps on here
http://www.iphonedevsdk.com/forum/iphone-sdk-development/
Apple Developers Forums (anyway to get RSS feed to these or is that blasphemy :) )
Safari - 100s of IT book though prob too many to keep up :)
any others?
Any site that gives simple examples for Obj-C/ UIKit
The docs just show the methods but actual examples (Google code search has helped a lot here)
--> 1):
In Xcode -> Preferences -> General, select "All-In-One" for the Layout.
I was used to have only one window and found this mode much better than the default.
Generating #property and #synthesize code.