Keyboard shortcuts - navigating tool windows (macos)

已回答

Please excuse the basic question.  As a historically mouse-orientated user, I'm trying to push myself more towards doing everything with the keyboard.  (Ar least in part with a view to using VoiceOver in macos)

How do I navigate around the tool windows?  For example, let's say I hit Ctrl+R to run my lat configuration.  My keyboard focus still sits on the editor.  I can press Cmd+4 to show the run tool window, but it doesn't give anything keyboard focus.  Once I click in, I can use cursor keys to move up/down and tab to switch sides.  But how do I give it focus in the first place?

Similarly, if I run something which just has some text output, how do I put the keyboard focus there so I can scroll around/interact with the area?

Also, is there any way to switch tool window tabs?  (E.g. so I can go between the different unit test results or run configuration etc.). I saw something saying I could switch use the same switch current editor tabs option from the Windows menu, but this just switches projects, not actually editor tabs.  (Maybe a bug caused by the new project tabs introduced in big sur)

I also cannot find any option to show a list of the active window tabs, so not sure if that option has been removed.

One other thing - if I get an error executing a DB query, and get a red error message - is there any way to use the keyboard to put focus into that error message?

0

can press Cmd+4 to show the run tool window, but it doesn't give anything keyboard focus.

May you record a screencast with "Presentation assistant" plugin enabled? For me, focus is transferred from editor to run tool window after "Cmd+4": https://giphy.com/gifs/XTDhTLH2z5MLY2pGYu

is there any way to switch tool window tabs?

Here is the feature request for that: https://youtrack.jetbrains.com/issue/IDEA-206831

I also cannot find any option to show a list of the active window tabs,

Not sure I got you. Maybe you mean Ctrl+Tab (Switcher)

I get an error executing a DB query, and get a red error message - is there any way to use the keyboard to put

Cmd+8 to open Services tool window and Tab to switch focus from services tree to output

0

Thanks @Konstantin Annikov.

I had another play.  If I press Cmd+4 and it shows the run window, if I then press Tab about 5 times it eventually gives focus to the treeview (if it's a test runner) or output (for a normal run command).  So it must be giving focus to something in there.

Ah just tried it again with VoiceOver enabled, and it makes it more obvious that some of the toolbar buttons are selected, so that makes a bit of sense.

The "show list of tabs" thing was something I found here: https://youtrack.jetbrains.com/issue/IDEA-164210?_ga=2.112521348.1854712443.1616338569-1477642310.1600517707. I read it as a way to see a list of the 2nd level tabs in, say, the run tool window.  But maybe I misunderstood.  I couldn't find the option anyway.

I tried your DB suggestion, and it also seems to require me to press tab a number of times.  But then if the query works, I can just about get into the table (with some difficulty), but guess I can't select the Output tab.

But let's say I run a query OK, and it displays a table of results.  Then I edit my query and make a mistake.  Now I get a red bar, and I press Cmd+8, tab, tab, tab, tab, tab, and now I'm in the results table and it looks like everything has worked, but actually I have a red bar in the middle of my screen with an error.  It sounds like I can't select the Output tab without either the mouse or navigating around with VO buttons, but there's nothing to tell me that I need to even look there if I can't see the error.

I had a look in the Notifications settings but couldn't see anything for the DB query editor.  It would be great if DataGrip could announce the error (if there is one), kor "x rows affected" or something (if it works).  Like I can with the test runner.

 

0

You can use these shortcuts to navigate between table and output in services view: 

0

Shift+Cmd+[ and Shift+Cmd+] change projects, not tabs in the command pane.

0

Hmmm just tried again and it does work - I must have had the focus in the wrong place.  Anyway, thank you!

0

请先登录再写评论。