Shortcut for copying Ctrl-C not working in Android Studio
Asked Answered
B

14

13

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?

Banquer answered 8/4, 2015 at 18:22 Comment(2)
This has happened to me before when I was accessing a computer through RDP. Usually restarting the program or the computer solved it for me.Watertight
I just restarted it and I am able to copy once. After that, old copied text gets pasted when copying and pasting. New text is not copied.Banquer
P
24

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.

Public answered 8/4, 2015 at 18:35 Comment(3)
It is under File menu.Public
Nope. Now it doesn't copy even once. Text from previous session was pasted while copying and pasting.Banquer
@Samir: Instead of providing just a link for "This", please also mention the solution in your answer.Cholula
A
13

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

Augustineaugustinian answered 27/12, 2016 at 22:35 Comment(1)
Best solution, (happened on Android Studio 2021.3.1 Ubuntu)Casting
H
7

Try to uncheck the Vim Emulator in Tools may solve ur problem!

Horthy answered 15/5, 2020 at 8:8 Comment(0)
H
4

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

Hannigan answered 2/11, 2015 at 7:4 Comment(1)
for me, this seems to fix the issue for a few minutes, and then the issue returnsPhiloprogenitive
C
2

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.

Cella answered 4/1, 2018 at 18:26 Comment(1)
This is the solution. Thanks for this. It's crazy that the Android Studio developers couldn't program such a basic functionality correctly.Cholula
A
1

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.

Ammeter answered 15/4, 2016 at 8:3 Comment(1)
i cannot find this option in the settings. did it move?Philoprogenitive
M
1

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

Mica answered 8/6, 2017 at 20:52 Comment(0)
T
0

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.

Timeconsuming answered 29/11, 2017 at 18:5 Comment(0)
L
0

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

Lithuanian answered 16/6, 2018 at 18:20 Comment(0)
I
0

For those migrating from MacOS to Windows, here is an easy fix:

Go to "Settings"

Press on "Keymap" section

Change from "macOS" to "Windows"

Imprecise answered 13/12, 2020 at 9:46 Comment(0)
H
0

In my case, the Ctrl c is occupied by other programs(mine is "Oulu Dictionary" program).

Try to check if other programs have a global shortcut key for Ctrl c.

Harriot answered 25/12, 2020 at 2:5 Comment(0)
D
0

If you are facing issue on on MacOS and you want to use Eclipse shortcuts, then try changing like below,

Android Studio -> Preferences -> search for 'keymap' -> from drop down choose 'Eclipse (macOS)' option

I was not able to copy text from Android Studio using command+c and above configuration change fixed it.

Disentitle answered 9/12, 2021 at 13:36 Comment(0)
G
0

Open: File>setting>Plugins. In the installed plugins section uncheck IdeaVim plugin enter image description here

Gurrola answered 29/1, 2023 at 13:36 Comment(0)
N
0

copy your text and paste into android studio empty line and copy again , from android studio and paste into emulator , its work !!!

Nunhood answered 19/9, 2023 at 15:15 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.