Discontinuous file selection in Pycharm project view

How do I make a discontinuous selection of multiple files in PyCharm's project view (MacOS 10.5+ keymap, MacOS Mojave, Apple Magic Mouse), say to select two file to compare, etc.  I can extend a selection with Shift-click, but there doesn't seem to be any way to select one file, then click on another arbitrary file to include it in the selection?  The  MacOS standard for this is Cmd-click, which does not work in PyCharm.  I couldn't seem to find any documentation covering this, and trying various other keyboard modifiers didn't work.

It did seem like Ctrl-click (which is the Windows way) might have been trying to do this (once or twice I seemed to briefly see the selection being added to), but Ctrl-click is a MacOS system-wide alternative for the right-click context-menu feature, and the context menu would immediately pop up for (only) the newly clicked file.

How would one make a discontinuous selection of files in the project window on MacOS.  Shouldn't PyCharm be mapping this to Cmd-click?

1
9 comments

After doing a little more playing around, it seems that this requires a Cmd-doubleclick, not the normal Cmd-click.  Is the doubleclick requirement some quirk of the IDE being based on Java instead of native or something?  Is this documented anywhere?  I don't think I've seen this selection behaviour in any other MacOS program.

4

Hi David,

Unfortunately I couldn't reproduce this behavior. Cmd+LeftMouseButton allows to select multiple files in the project tree with only a single click on each file. The issue seems to be isolated to your environment so far.

As I understand, the issue is reproduced only in PyCharm, and you can select multiple files in your file browser or any other program with no issue?

Just to be sure, please go to Plugin settings and try to disable all installed plugins, let me know if anything changes.

0

It's very strange, the weird Cmd-click behaviour is on my home Mac (and only in PyCharm), but when I tried it on my similar Mac setup at work, Cmd-click  works as expected.
I'll try and narrow down possible causes on my home machine as soon as I have a chance.  

0

I'm actually happy with your Cmd-doubleclick work-around, I have the same problem and it is driving me crazy :)

0

I'm also having this problem in PyCharm.

0

I also having this problem in Rider. But sometimes it disappears and Cmd+Click working as expected. Very strange. Cmd+DblClick works! Thanks for this workaround, I didn't find it myself.

0

I also have this problem in IntelliJ. Sometimes CMD-Click does work but most of the time I cannot select multiple files. Is this a JRE problem? 

0

Similar issue: https://youtrack.jetbrains.com/issue/IDEA-209018

Does it work with double-click? Regardless, I think it's better to submit a new bug to https://youtrack.jetbrains.com/issues

0

I am also having this problem since I have upgraded from IntelliJ 2019 to 2020 :(

I have updated to IntelliJ 2020, and I have noticed that I can not select 2 files in project view, using Command+Click, in order to Diff them. This used to work in IntelliJ 2019.3.

0

Please sign in to leave a comment.