Shortcut for copying Ctrl-C not working in Android Studio

依然范特西╮ 提交于 2019-12-21 17:21:32

问题


I am able to copy text from other programs and paste it to Android Studio. I am able to right click and copy selected text. I am able to cut text and paste it using shortcut. But while using shortcut Ctrl + C to copy text I am often unable to copy. This is very annoying problem. Does anyone here knows how to solve it?


回答1:


If restarting AS does not resolve the issue you could try Invalidate Caches/Restart option. That sometimes fixes such issues.

----update----

This might fix your issue.




回答2:


I used Invalidate Caches/Restart option and worked for me. you could try that.




回答3:


Easiest Solution - Reset copy paste in Android Studio by clicking on an empty line and press Ctrl-C to copy nothing (crazy I know but it works). Then recopy your source and paste with Ctrl-V




回答4:


Seem to work for me if I: goto Settings > Editor > General > under Limits change "Maximum number of contents to keep in clipboard" to 1.

Then copy something from within the Android Studio editor, and then the copy and paste from outside started to work for me.




回答5:


Go to Settings -> Keymap -> And then select Eclipse for Keymaps dropdown view. Generally it is set to MAC OS 10 by default




回答6:


Updating the Android Studio and Invalidate Caches/Restart option doesn't worked for me. But Paste Simple or Ctrl + Alt + Shift + V will works when you are trying to paste something from outside. Try using Copy Reference or Ctrl + Alt + Shift + C and Paste or Ctrl + V. It works for me.




回答7:


Invalidating cache / restart didn't work for me. Reinstalling didn't work. Clearing the ~/.android directory didn't work. No answer I found worked.

What seemed to clear up the situation was disabling the "Android Support" plugin. Suddenly, cutting and pasting works again. But then all sorts of debugging features are missing. So that's not a real solution.

This is the real solution that worked for me. There's some sort of bug upgrading to Studio 3.0 that created an extra .xml file under the menu folder in res. Removing this file fixed everything.




回答8:


I was setting up Android Studio based off my MAC settings. I found out that I had to change the Keymaps from MAC OSX to Default (Windows) Android Studio Keyboard shortcut control



来源:https://stackoverflow.com/questions/29522438/shortcut-for-copying-ctrl-c-not-working-in-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!