Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to paste a formatted text without its formatting in Android Studio?

I am using Android Studio for programming. I have faced difficulties many times while copying regular expressions. Whenever I copy any regex and paste it, it removes the escape character every time and I have to manually type those escapes to make it a valid regex again. I tried to check intelliJ settings but did not get any option to turn off this feature.

This question did not answer my question fully but I realised that it is a problem in java itself.

Please guide me how to avoid this problem especially since the regex strings sometimes run into hundreds of characters and it becomes difficult to track all the changes.

like image 836
Mohan Pednekar Avatar asked Dec 20 '22 20:12

Mohan Pednekar


1 Answers

Good answer from Mohan:

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

like image 125
Stephan Avatar answered Dec 26 '22 12:12

Stephan