Java – How do I paste formatted text without formatting in Android Studio?

How do I paste formatted text without formatting in Android Studio?… here is a solution to the problem.

How do I paste formatted text without formatting in Android Studio?

I’m programming using Android Studio. I have had difficulties many times when copying regular expressions. Whenever I copy any regex and paste it, it removes the escape characters every time and I have to manually type these escapes to make it a valid regular expression again. I tried to check the intelliJ settings but didn’t find any option to turn off this feature.

This question Didn’t quite answer my question, but I realized it was a problem with Java itself.

Please guide me on how to avoid this issue, especially since regular expression strings can sometimes reach hundreds of characters and it is difficult to keep track of all changes.

Solution

Mohan’s answer is good:

I had never tried this simple thing. Its called “Paste Simple”. Hotkey: Ctrl+Alt+Shift+V. This solves my problem.

Related Problems and Solutions