The code copied from OneNote has errors in the Android Studio (Space issues)
In this article, let's repeat a scene of the code issue occurred.
Copy Code from Android Studio
In Android Studio, press Ctrl+C to copy a piece of code.
In Android Studio, press Ctrl+C to copy a piece of code.
Code in Outlook.com
Then, paste the code into Outlook, and send the code as email to a teammate.
Then, paste the code into Outlook, and send the code as email to a teammate.
Then, login Outlook.com in browser, and navigate to this email. Select this piece of code and press Ctrl+C to copy them to clipboard.
(In fact, this piece of code have changed in browser)
Paste Code to OneNote from Outlook.com
Press Ctrl+V to paste the code into OneNote.
We still didn't find anything unusual.
(In fact, this piece of code have changed in browser)
Paste Code to OneNote from Outlook.com
Press Ctrl+V to paste the code into OneNote.
We still didn't find anything unusual.
In OneNote, select this piece of code, and press Ctrl+C to copy to clipboard.
Paste Code to Android Studio from OneNote
Press Ctrl+V to paste the code into Android Studio, and the code hint error was found.
From the error tip of Android Studio, it was found to be the spaces errors.
(Obviously, the spaces are replaced in browser)
Paste Code to Android Studio from OneNote
Press Ctrl+V to paste the code into Android Studio, and the code hint error was found.
From the error tip of Android Studio, it was found to be the spaces errors.
(Obviously, the spaces are replaced in browser)
Gem's Copy Feature
Gem also provide "Copy" feature. It copy selected text to plain text to clipboard.
Copy the text as plain text, and paste to Android Studio, it has no spaces error.
Gem's Copy feature located in Gem for OneNote "Edit" tab.
Gem also provide "Copy" feature. It copy selected text to plain text to clipboard.
Copy the text as plain text, and paste to Android Studio, it has no spaces error.
Gem's Copy feature located in Gem for OneNote "Edit" tab.