I am working on a project with a huge number of files in eclipse. Everynow and again when I am following code around I would really like to be able to temporary mark the 5 or so files that are relevant to the code I am following around. This would make it easier to jump between the 5 or so files when I am figuring out what is going on. Any ideas - besides close everything and just open those files?
Thanks.
Use bookmarks. You can create a bookmark by going to Edit > Add Bookmark. Then open the Bookmarks view to see a list of your bookmarks.
If you can remember those file names, you can use shortcut Ctrl + Shift + R (or) Ctrl + Shift + T to open them quickly. You don't need to go to file browser and look for those files.
As an alternative to using bookmarks, you can use a plugin like Mylyn. It automatically keeps track of files you've been in while working on a task. This 'state' can then be cleared and restored later (by switching tasks).
Might be overkill for what you need, though.
Related
Is it possible to open the same file buffer(editor) in multiple VSCode windows? This is not the same as opening the same file more than once. In the later, if you forget to save edits in one window, and then save different edits in another window, you end up with conflicts. I'm curious if it's possible to have the same buffer opened (mirrored?) in different windows, such that the view is identical for that file across all windows. So if I make changes in the file (even before saving), those changes also show in every other window that the buffer is opened in. I've searched around a lot but can't really find anything. Thanks.
Use the Split Editor command: Ctrl + \.
You can also use the icon in the top right. Hold Alt to split down.
Opening whole directories (each one requiring a new window) doesn’t play well with editing lots of little scripts/config files scattered in different folders.
Yes, you can! Here are three ways:
Either by running code {yourfilename here} in a terminal.
Dragging the file from a file explorer onto the open VSCode window.
Use the menu item "File/Open file... (Ctrl + O)", see image.
You don't have to open a folder in VSCode!
In VSCode create a New Window (instance) and open all the files you're interested in from anywhere on your disk.
If you want to keep this selection for later, you can Save Workspace As .. for later usage.
I would like to have a certain folder in the Project Explorer expand automatically upon opening the project (or starting Eclipse with the project already open).
When working on multiple projects, you find yourself closing and opening projects a lot, and closing all relevant editors (Ctrl + Shift + w), so the editor link as commented by Torsten is not the solution I am looking for.
Pressing asterisc (*) expands all folders. However, I would like this (1) to happen automatically, and more importantly (2) only expand a certain (sub)folder.
Is this possible?
Try Shift+numpad_multiply for exapanding every file under a package/folder and Ctrl+Shift+numpad_divide for collapsing a project. I think this works better on Navigator for a big project because when I tried it in my project explorer, I ended up crashing eclipse.
I have quite a complicated code source and I have commented and split it as best I could and created a table of content. I would love to be able to simply click/ctrl + click on one of the lines in my table of content and automatically put my view to the line/link I specified. Is that possible in NetBeans?
You could use bookmarks which are supported by Netbeans. Under "Window / IDE Tools / Bookmarks" you can open the bookmark window which gives you an overview over all bookmarks which can be also renamed. From this window you can navigate via double-click to your bookmarks.
No exactly what you had in mind but a viable alternative.
(see also http://wiki.netbeans.org/EditorBookmarks72)
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