Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97420

Does VSCode can escape text when pasting into a string literal?

$
0
0

Eclipse has an option that copy-paste of multi-line text into String literals will result in quoted newlines.

Preferences > Java > Editor > Typing > Escape text when pasting into a string literal

Does vscode can do it?

for example

copy bellow and paste:

some text with tabs and new lines

Then eclipse change like this:

"some text\twith tabs\r\n" + "and new \r\n" + "lines"

How can I do it in vscode?


Viewing all articles
Browse latest Browse all 97420

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>