I had added bookmarks to my eclipse program so that I remember to come back to those the next day. I like using bookmarks for this because I can just click on the green rectangle next to the scrollbar to quickly go to that location in my code. This is what is mean:
The problem however is that once I close eclipse and reopen it, all the bookmarks are gone. They don't show green rectangle anymore. Is there a way to keep these bookmarks until I manually delete them?
Related
I'm trying out Visual Studio Code. Yesterday, I opened a file outside of the git directory I was working in. I eventually moved and renamed the file and somewhere along the line, I ended up with the empty panel shown in the attached screenshot. I tried clicking every GUI element and every menu item and I could not get rid of it. I could close that file and it would go away, but once I re-opened it, it would come back, so it seemed to be associated specifically with that file.
I could split the view and add more tabs, but there was no way to get rid of it. I selected view > editor layout > single many times and it would not go away. All I could do was make it smaller by dragging the vertical divider.
This morning, I closed it and re-opened it, and it was gone. Unfortunately, despite trying to reproduce the steps that lead to that empty panel, I could not make that panel show up again.
Does anyone know what that panel was, why it was appearing with that file, and how to make it go away if it happens again?
That file basically shows you all the edits you've made since you last saved the file in git. By clicking on the source control button on the activity bar on the left side you can view your changes on the files you're working on. You can't actually edit it, it just shows the changes you've made.
To actually open the file and edit it you can either go back to the top left button called explorer on the activity bar or click on the little file button next to the name of the file (next to the + sign and the arrow).
Checkout this video by vscode which explains it
I somehow messed up my perspective then I clicked reset perspective. This gives me back the package manager on the left. problems/javadoc/declarations on the bottom. Task list and outline as 2 separate windows on the right and a big empty space in the middle where the code is supposed to be. When I open up some code it ends up in the bottom window and there's that big hole where the code window used to go. I can drag and drop the code into that empty space, but when I try to drag the code window bigger to fill up the entire space it won't let me past a certain point. I'm left with a gap above the coding window that's bothering me. It seems Eclipse is leaving that space for me to drag other perspectives into, however dragging more perspectives into that empty space doesn't make it go away, it's still the same size. How do I get rid of this space?
Close eclipse if it's open
Navigate to your workspace folder
Further navigate down into .metadata then .plugins (These are hidden files, use terminal or look up how to show hidden files in your OS)
Delete the org.eclipse.e4.workbench folder
Restart Eclipse
If it still doesn't look right click Window > New Window
If it still isn't fixed please let me know in the comments (it might be time to reinstall Eclipse)
After doing a refactoring in NetBeans 8, is there any way to learn what actions were taken? Is there a log or history tracking?
Right on top of the first line of code should be a button named "source" and right next to it should be a button named "history". After saving your file, any changes are hold here. Hit the history button and you can browse your changes.
If the buttons are not there, go to menu "view/show editor toolbar".
my Eclipse Juno SR1 somehow got screwed up. It seems I have a new area, and if I interpret it correctly, it is called the "Shared Area" (only from a tooltip). I cannot get rid of it by conventional means (i.E. closing/hiding). All files I open now are opened in this shared area, not in the area my files were opened before. The area is distinct from the normal editing area in that it will not go to the same place (top right, under the menus).
The area has only maximize and minimize buttons. Maximizing it will maximize it over everything, this would be expected. Minimizing it actually hides it, but opening an existing file will bring it back as kind of a popup over the eclipse file list.
I do not seem to find how I activated this feature, and I cannot seem to find any activation instructions in the Eclipse help (the help looking for "shared" and "area" separately doesn't really help anyway).
I just want this feature/window/perspective to go away and let me open files like I used to. Any tips?
Edit: Maybe this area is not called "Shared area", this could be wrong. If not, it doesn't seem to have any name. It just forces all editors opening new files to open in it, and not in the area that they usually open in. The way I determined it was called "Shared area" is by minimizing it, then opening a file. It opens as kind of a popup (described above), and there's a menu bar attached with 2 icons, "Restore" and "Shared area", which is pre-selected.
This is the are "docked" to the right:
This is the area docked below:
The area is not dockable in the way that it docks to certain areas of Eclipse, but stretches (when dragged) over the whole Eclipse Window and even outside of it.
You should reset the perspective Window -> Reset Perspective...
The shared area is the default location to open files. The files remain open in the shared area across different perspectives such as Java and Debug so that you can switch between them while working on the same files. You'd generally drag a file outside the shared area to work on it without it appearing in other perspectives.
It's hard to position the shard area view by dragging it, but you can drag the surrounding views in place around it to get it where you want.
I click on the bottom corner of the offending tile and dragged in till it closed! The "reset perspective" did not work for me but the draggin to a smaller size as if it were a picture did. Hope this helps.
If nothing works out for you, simply go to window -> new Window. Opens up a fresh copy of eclipse with everything loaded up. Even on a restart,loads up like normally it would.
I think I know what you mean. If you drag any view to that "Shared Area" but not to the body but to the header (where the title is supposed to be) the dragged view will occupy completely that "Shared Aread".
Hope that helps.
Here's what worked for me:
Menu > Window > Perspective > Open Perspective > Other > Java(default) > Open
Now I can create a new class that shows on the tab next to my working tab.
Ctrl+Shift+{ to toggle it on or Off.
Ctrl+Shift+W to close both of the area.
Why is it that every time I save my file in Eclipse with Ctrl-S it moves the cursor to the top of the page I'm working on? Coincidentally, it moves the cursor to the top of the JavaScript section of an HTML page I am editing. It's really annoying. How do I stop it?
Yep, was plagued by the same annoyance. In the eclipse preferences, select javascript then editor. On the editor preferences page there is a box, checked by default, called "Smart caret positioning in JavaScript names (overrides platform behavior)". Uncheck it.
I've got into the habit of hitting ctrl+Q immediately after ctrl+S
This brings you back to the last edited location.
Not so much a solution as a workaround, but it has stopped me pulling my hair out nonetheless.
S.