Navigation issues in IDEA

Answered

I selected visual studio keyboard layout. There are basic stuff that I'm so used to, I find it awkward that kind of stuff doesn't work properly in IDEA, and it's not even visuals studio specific.

For example: if I search [Alt+Ctrl+F] then type "StreamLoader" [Enter] then I see all places where StreamLoader is found. Then, pretty much in every editor that I used you use [F4] to cycle through results. Obviously that's the way it works in VIsual Studio, and many other editors. Notepad++ comes to my mind, it also works exactly that way. In IDEA I hit [F4] if shows me some location, but then consecutive F4 doesn't properly cycle to next results. It kind of gets stuck, not sure what's going on, it doesn't even show me that same location in file view as it shows in selected find results. Totally awkward. The other point: I do global search for "StreamLoader" it gets me list of results (that leveled display is BAD imo). Then I do global search for "SomethingThat doesn't exist" and I still see search results of "StreamLoader" wtf?! I do quick searches and then cycle results and if there wasn't anything found it will cycle results from previous search!????

 

Then there is this thing with source navigation. If at any point I go to class or member definition that might be located in different file there should be always easy way to get back where I was previously. The best way IMO is to use web-style history navigation: [Alt+Left] and [Alt+Right] will cycle between locations where was  my input cursor. It works between files or in the same file. For example, if I open a file and cursor at start on first line, then I do this: [Ctrl+G] 100 [Enter], [Ctrl+G] 200 [Enter], [Ctrl+G] 300 [Enter], [Alt+Left], [Alt+Left]: now I'm located at line 100, [Alt+Right] now I'm located at line 200. I see that alt+ left/rigth does something what usually Ctrl+tab, ctrl+shift+tab do to cycle tabs (in browsers and editors alike).

So, is is possible to really get real visual studio like feel of the editor? At least debugging feels more or less like in visual studio, except that awkward F5 shows unnoying dialog instead of starting debug session right away.

 

 

8 comments
Comment actions Permalink

Use Ctrl+Alt+Up/Down to navigate between the Find Occurrences results (can be customized in Settings | Keymap).

Ctrl+Alt+Left/Right navigates via the history (can be also customized).

Use Alt+F5 to debug the currently selected configuration without a dialog.

0
Comment actions Permalink

>  Use Ctrl+Alt+Up/Down to navigate between the Find Occurrences results (can be customized in Settings | Keymap).

Doesn't work. I tried to check Edit | Find menus to see shortcuts, but nothing works. I don't know why you say Ctrl+Alt+UP/Down, it's not listed anywhere and doesn't do anything.

> Ctrl+Alt+Left/Right navigates via the history (can be also customized).

Doesn't work also. If I go to Navigate | Back of Forward then it produces correct action. It also mentions this shortcut (Ctrl+Alt+Left/Right), but the shortcut doesn't do anything. IMO, as I already mentioned it should be identical to browser history Alt+left/Right without Ctrl.

> Use Alt+F5 to debug the currently selected configuration without a dialog.

I see that from menues, but why it doesn't do the way visual studio does? F5 to start debugging, same shortcut to continue (resume)?..

note, I have clean IDEA install, the only change is that in settings I selected visual studio shortcut layout, that's all.

 

0
Comment actions Permalink

See http://i.imgur.com/cXj9Ydj.png.

You may have an issue with your video driver taking over some shortcuts. See if using different combinations works for you (edit keymap).

0
Comment actions Permalink

:) haha, no, video driver doesn't do that :) These shortcuts work in visual studio ;)

 

I see the same settings in keymap as you. But these do not work and do nothing: Navigate | Back, Navigate | Forward, Navigate | Previous Occurrence, Navigate | Next Occurrence

I think the default keymaps for these commands aren't good, but I didn't try to remap these keys so far.

 

Regarding "Navigate | Back" and "Navigate | Forward": these are extremely important commands and I won't use any editor that cannot do that properly. These Navigate Back/Forward commands work properly from menu and work properly using back/forward side mouse buttons (so, I can at least navigate using mouse here). But I'm trying to voice it loud and clear: these have to be Alt+left and Alt+Right without Ctrl. These are essential navigate functions and have to work just like in a browser. The other point to support my argument is that the mouse back/forward buttons do these actions, then alt + left/right should do the same actions as well (just like in any other app that reacts to back/forward mouse clicks).

 I think that it was wrong to set Alt+left alt+Rigth to switch between tabs. I think that's the shortcut in tabbed terminal on ubuntu to switch tabs, but I see no reason to use it here as well. At least with visual studio layout it shouldn't assign these shortcuts.

 

0
Comment actions Permalink

Sorry, I'm wrong, as I said I didn't modify and these default shortcuts do not work. There is something common between all these that do not work: all of them have Alt+Ctrl, might be related. But I'm pretty sure that it cannot be driver related, I don't run cargoware from nvidia, I use basic drivers from windows and there is no control panels etc, I don't use all that mess.

 

I just verified, Ctrl+Alt+S is "Save As" in Notepad++, works properly.

By the way, regarding searching and cycling results. I didn't get the chance to see it in action in IDEA, but global search in notepad++ is done extremely well IMO, better than visual studio. Very quick and well designed navigation. It's "Find Occurrences" window has similar functional design to IDEA, but there is something cool about notepad++: in that window you always see previous search results (they are always collapsed at the bottom and it's easy to "come back" to previous search results

0
Comment actions Permalink

I can definitely say that something is wrong with shortcuts and Ctrl+Alt shortcuts just didn't do anything. Don't know why. I changed now defaults for Next occurrence to use F4 instead of weird Alt+Ctrl+Up/Down combination and it works now. Same for navigation, I fixed it to use proper Alt+Left/Right and it works properly now.

I already explained why navigation has to use Alt+Left/Right and not Alt+Ctrl+Left/Right. I'll explain why next/previous occurrence has to use F4/Shift+F4: IDEA does properly regular search with F3/Shift+F3 inside current doc, for global search it's similar, but instead of F3 it's F4. That's how it it should work, no idea why IDEA invented some combinations for shortcuts that existed for ages.

 

Also, F3 always cycles in a document. When you reach the end it goes back to first position in the file. This works in IDEA. Similarly it has to behave in Find Next Occurrence: When you reach last result it should go back to first one. Currently it stops on the last one and doesn't do anything.

IMO Pretty much everything related to usability isn't done properly in IDEA. That's the impression I get.

0
Comment actions Permalink

Ctrl+Alt-shortcuts not working on your machine usually indicates some external issue. Usually it's caused by Intel video drivers and may not affect other apps. If you have Intel driver, disable the shortcuts in the driver settings. If not, look for other apps that may cause this conflict.

It's definitely not reproducible here on multiple systems and we are not getting mass bug reports about it, so it seems to be specific to your environment.

0
Comment actions Permalink

Many customers have been using current defaults for years, we can't change them. If you don't like them, you are free to customize your keymap.

0

Please sign in to leave a comment.