We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prettier Java does not supports (yet) string templates (JEP 430, specs)
// Embedded expressions can be strings String firstName = "Bill"; String lastName = "Duck"; String fullName = STR."\{firstName} \{lastName}"; | "Bill Duck" String sortName = STR."\{lastName}, \{firstName}"; | "Duck, Bill" // Embedded expressions can perform arithmetic int x = 10, y = 20; String s = STR."\{x} + \{y} = \{x + y}"; | "10 + 20 = 30" // Embedded expressions can invoke methods and access fields String s = STR."You have a \{getOfferType()} waiting for you!"; | "You have a gift waiting for you!" String t = STR."Access at \{req.date} \{req.time} from \{req.ipAddress}"; | "Access at 2022-03-25 15:34 from 8.8.8.8"
The text was updated successfully, but these errors were encountered:
Hello,
Is there a workaround for this issue until support is ready?
This does not seem to work: // prettier-ignore
// prettier-ignore
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Prettier Java does not supports (yet) string templates (JEP 430, specs)
The text was updated successfully, but these errors were encountered: