Indent characters showed inside a pasted string

Answered

Hi there. I try to paste a XML string to the string variable value and Intellij shows the indent characters, how can I hide them and show an empty space instead?

 

 

 

7 comments
Comment actions Permalink

Hi, could you please provide the exact steps to reproduce a problem? Are you copying XML text from IDEA or from outer source?

1
Comment actions Permalink

hello Petr, I make formatting in the TextMate editor ("Indent Selected" action), it probably inserts the \t symbols to the string for indention, but they are not displayed.

And I copy this formatted string to the Intellij, now \t is appear in the Intellij editor as you can see.

0
Comment actions Permalink

Petr Rastegaev What a deafult behavior of Intellij editor? Should it show the indent symbols inside the string? If yes, how can I format xml string with whitespaces instead of indent characters?

0
Comment actions Permalink

By default Editor does not show special characters, we even have a feature request to control this behavior. Is the problem limited to XML only, or is it reproducible when you paste text to a text file opened in IDEA editor? 

0
Comment actions Permalink

@Petr Rastegaev, idk about other cases, for me it happens only with previously formatted XML string. And it doesn't matter if I format it in TextMate.app or TextEdit,app or internet site with XML formatter, the result after paste it to the Intellij is same.

0
Comment actions Permalink

We have a related feature request, please upvote: https://youtrack.jetbrains.com/issue/IDEA-178311

0

Please sign in to leave a comment.