anew10
anew10

Reputation: 299

How to encode strings in Eclipse?

In previous version of eclipse when I pasted a string btw "" it would encode it automatically like below

private String test = "\"ICAgQ0JMIE5VTVBST0MoTUlHKSxGTEFHKEksVyksUkVOVA

In the current version(Version: 2020-03 (4.15.0)) it does not automatically encode like in previous versions. Do we need to set this somewhere on eclipse?

Thanks!

Upvotes: 0

Views: 32

Answers (1)

greg-449
greg-449

Reputation: 111142

I think you want the "escape text when pasting in to a string literal" option in the 'Java > Editor > Typing' page of the Eclipse Preferences.

Upvotes: 1

Related Questions