Share via

Copy & paste text with format.

Anonymous
2018-03-02T03:05:37+00:00

Copy from code in Intellij IDE and paste to Onenote 

When I copy from code Intellij IDE and paste it to Ontenote, it won't work correctly.

It maintains format but miss spaces.

When I do it MS Word, It works well. please find it. 

This is onenote

publicfinalclassUtils{

publicstaticbyte[]floatToByteArray(floatvalue){

returnByteBuffer.allocate(4).putFloat(value).array();

}

}

This is wordpublic final class Utils {    public static byte[] floatToByteArray(float value) {        return ByteBuffer.allocate(4).putFloat(value).array();    }}
Microsoft 365 and Office | OneNote | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. DaveM121 890.8K Reputation points Independent Advisor
    2018-03-02T08:20:03+00:00

    Hi joongkeunkim, I have the exact same issue for years with the Intellij IDE and Visual Studio.

    Sometimes the formatting is lost, the only work around that works all the time, is to copy my code into Word and then on to the final application, this keeps the formatting, syntax highlighting . . .etc. intact . . .

    Was this answer helpful?

    0 comments No comments
  2. Vijay A. Verma 104.8K Reputation points Volunteer Moderator
    2018-03-02T03:23:13+00:00

    Could you give an example of missing space? Does it join the words?

    Was this answer helpful?

    0 comments No comments