Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable Android Studio / IntelliJ IDEA clipboard management on OSX

I'm using ClipMenu for managing my clipboard on OSX. The clipboard stacking/mgt feature of Android Studio interferes with ClipMenu's features and I'm looking for a way to disable this feature in Android Studio. Does anyone have experience with this?

I already tried:

  • Removing Copy & Paste Shortcuts in Android Studio (to maybe get the system behaviour back) -> Copy & Paste disabled in Android Studio
  • Setting "Maximum number of contents to keep in clipboard" to 0 or 1
  • apart from that I did not find any settings in Android Studio's Preferences when searching for "clipboard"

I want to avoid using Android Studio's clipboard stacking as I want to use a consistent shortcut for "Paste from history" throughout my OS.

Cheers!

Update As Android Studio tends to overwrite the changes on update, I created a mini-bash script to re-"fix" the clipboard (on OS X; just adjust the path for other OSes):

echo "ide.mac.useNativeClipboard=true" >> /Applications/Android\ Studio.app/Contents/bin/idea.properties
like image 340
Florian Barth Avatar asked Jan 14 '15 17:01

Florian Barth


1 Answers

Right click on "Application/IntelliJ IDEA 14.app" choose "Show Package Contents", edit "bin/idea.properties", add this property "ide.mac.useNativeClipboard=True", restart IntelliJ IDEA.

There is a YouTrack issue for this problem with additional information.

like image 95
yole Avatar answered Sep 20 '22 06:09

yole