Stop auto-scrolling on a split or cloned window in NetBeans - netbeans

Using NetBeans version 11.3, when splitting or doing a clone of an opened document tab I can scroll to different position in each view while editing the same document, I can also type and change the document in these different positions, the problem is that if i'm doing an UNDO / REDO operation on one view , the second view automatically scrolls to the cursor's position of the first view, is there a way to disable that automatic scroll?

Related

Eclipse/STS4: How move a View among other views but with the keyboard?

For Eclipse/STS4 IDE assume exists a window where in some section exists the following views together and sorted as:
Console
Javadoc
Progress
Search
Terminal
Now, if is need to move or change the position of the Search view as the second (after of the Console view), how to accomplish this goal with the keyboard and not with the mouse? therefore without drag and drop.
Reason
Accident about a cut-off in a hand's palm, so is not easy use the palm of the hand to use the mouse

Prevent VSCode from scrolling up or down when selecting text

When I use VSCode and select text with a mouse (instead of the trackpad) the view is moving up and down slightly. It is annoying. Usually, it only scrolls when the selection is going off screen. Is there a way to turn this off?
It also moves when I place the cursor on new lines.
Editor settings:

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

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.

Horizontally scrolling NSCollectionView does not scroll until window resize

I have a horizontally scrolling NSCollectionView. The items are created but it is not scrollable until I manually resize the window in a horizontal direction. After that I scrolls fine. Does anybody know how to fix this? I looked at this question (question link) and tried the suggested solutions but I think its a different problem since it works after resizing the window.
EDIT:
The collection view is in a tableview cell. I have other collection views (although vertically scrolling and not in a tableview cell) in the same application and they work fine.
I solved it just by add this on my collectionView:
[self.yourCollectionView setFrameSize:self.yourCollectionView.collectionViewLayout.collectionViewContentSize];
I been experiencing similar issue for so many years and finally figured out that this is caused by Xcode.
When force quitting your application with Xcode (by ether clicking Run or Stop when application is running), Xcode saves the window's frame and restore it on next launch, even when your window is not configured to autosave its frame.
This is good for development but for some reasons, this causes the document view of the scroll view (mostly collection view) to not use the correct bounds in the next application run.
Manually setting collection view's frameSize as many people suggested doesn't always works. However, if you quit your application normally:
Click Application Menu and select Quit Application Name
Use keyboard shortcut ⌘Q
Right click on Dock icon and select Quit (with ⌥ or not)
Force quit in Force Quit Applications window (⌘⌥⎋)
...
Anything will works as you expected in the next application run (including launching from Xcode).

How to open an eclipse view to Right Side Only

I have an eclipse view and whenever I open that view, I want it to default open in Right Side of the eclipse.
How to make this possible
while being in an eclipse perspective place the views in the locations you want. After exiting and reopening eclipse the views will remain in the positions you placed them in the respective perspective.
If you want to programatically position your view, right away when it is opened for the first time, you can create your own perspective, adn in that perspective you either include the view in the desired location, or you include a placeholder to define where the view should appear as soon as it's opened. See API for org.eclipse.ui.IPageLayout, method addPlaceholder.
If you don't create your own perspective, you may not be able to influence where your view is initially positioned. You can only manually position the view after it had been opened, and Eclipse will then remember this location in the workspace.