In IntelliJ when searching for text (Control-F), F3 moves to the next occurrence. Unfortunately when it finds the next occurrence, it doesn't vertically center the text. ie, it scrolls the editor such that the next occurrence is at the bottom of the screen. What I want is for it to scroll such that the next occurrence is centered vertically (like Eclipse and vim does).
I'm running IntelliJ 10.5.1 on OS X 10.6.
Follow-up: I have Prefer scrolling editor canvas to keep caret line centered enabled. In some instances it centers, other times it does not. The above setting doesn't seem to impact this behavior.
Settings > IDE Settings > Editor
Choose Prefer scrolling editor canvas to keep caret line centered
Related
in Intellij Idea on mac, I wanted to remove the extra lint warning yellow marker lines from the scrollbar (still wanted to keep the red & green markers), but upon applying, ALL lines disappeared, so I reenabled all warnings (in editor->inspections) but still nothing on the scrollbar.
How do I get those warnings back?
PS: I should mention the scrollbar is now transparent such that it overlays the code window. It wasn't before so I think resetting that might fix the problem
You can restore to defaults by clicking the cog icon like down below.
It's important to check the Stripe Mark Settings in the Color Scheme. Stripe Marks are responsible for the little colored boxes in the vertical scrollbar of the Editor.
I've searched all the settings and Google but can find nothing. It seems such an obvious feature. If I use the arrow keys to scroll vertically through the code, I quickly end up with the cursor at the top or bottom of the screen whereas I really want to be doing my editing near the centre of the screen, which means I have to do two operations: scroll the code to where I want it and then move the cursor.
What I want is to hit a shortcut (e.g. the Scroll Lock key) and then when I press up- or down-arrow the cursor stays where it is (relative to the screen) and the code scrolls past it.
I've read that some tools allow you to set the number of "always visible" lines above and below the cursor which would do the job, but I can't find that in Rider either.
Am I missing something obvious, or is there an add-in or something I can customize to get what I want?
Found it! There are Move Up and Scroll and Move Down and Scroll actions in the keymap settings. Assign hotkeys to them (weren't assigned in my config) and it will work like you described it.
i am really annoyed by weird caret / cursor behaviour inside IntelliJs editor.
The caret sometimes get stuck at some line at the beginning. If you try to navigate by arrow-keys or something else despite the mouse when this happens, the caret will instantly jump back to the previous position. Only way to set it free is to click with the mouse somewhere else in the editor window.
In addition to it, if the caret is stuck and you scroll, the caret moves the same amount of lines you scroll in the editor and will select all text on its way.
So the question is: what can i do about it?
env: macOS 10.12.4, recent JetBrains IDEs (tried several versions)
I am using Intellij Idea 14.1.3 on Mac OS X Yosemite 10.10.3. Often, while debugging, I want to introduce a break point by clicking on the left margin (called the 'gutter' in Intellij). The problem is that on many lines, there is no space to click. No matter how I try, the click happens on an icon already present ... which is not what I want to do. Attached a screenshot to show this
How can I increase the gutter width so that there is some empty space even where the little green override symbols are present?
It doesn't seem there is a way to configure the gutter size, it just resizes dynamically. I'd suggest raising an issue in the issue tracker.
As a workaround you can set a breakpoint on any line via the editor window. Set the caret on the line to stop at, and press ⌘+F8 (on a Mac).
This appears to be fixed in some future release of IntelliJ:
https://youtrack.jetbrains.com/issue/IDEA-137353#tab=History
I'd like to increase the size of the bar on the right side of the Editor in IntelliJ IDEA. It's simply way too small for my taste.
It is the bar where the warnings or usages are displayed.
P. S.: The bar is called Error Stripe.
I agree, the scrollbar is far to small, and hard to see.
Another option you could try is installing the "CodeGlance" plugin which adds a full view of the code and makes scrolling far more intuituve.
Grab it from (as of 15-04-27) https://plugins.jetbrains.com/plugin/7275?pr=clion
Press Ctrl + Alt + Shift + / and select Registry... from the menu that appears.
Look for editor.full.width.scrollbar and tick the box on the right. The change should take effect after clicking the close button. The width of the scroll bar should be marginally wider, it's not a lot but every little bit helps :-)
Unfortunately this setting only affects the scroll bar on the right of the editor window. All the other scroll bars are unaffected.
For those that find transparency effects annoying then look for editor.transparent.scrollbar and untick the box on the right. This change should take effect after clicking the close button and restarting IntelliJ.
It seems like it – or the scrollbar as a whole – can't be resized.
You could scroll to the bottom of the bars properties in the GUI section and change the width to example (100dp). Or you could play around with the XML file that contains the width and height property.