DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Data Engineering
  3. Data
  4. Preview Raw String Literals in IntelliJ IDEA 2018.3

Preview Raw String Literals in IntelliJ IDEA 2018.3

Raw string literals are ready for you to preview in IntelliJ IDEA 2018.3 Beta! Check out this article to see how to try this brand new support in the upcoming IntelliJ IDEA 2018.3.

Zlata Kalyuzhnaya user avatar by
Zlata Kalyuzhnaya
·
Nov. 05, 18 · News
Like (1)
Save
Tweet
Share
8.35K Views

Join the DZone community and get the full member experience.

Join For Free

Our drive to develop has taken us into the fast lane, and just look at us go! Even though Java 11 has just come out, we're already adding initial support for Java 12 in our upcoming IntelliJ IDEA 2018.3!

Raw string literals (JEP 326) are ready for you to preview in IntelliJ IDEA 2018.3 Beta. To take advantage of coding assistance for Java 12, set the language level to "12 (Preview) - Switch expression, raw string literals" in the Project Structure dialog.

You can also run your application on JDK 12, by simply setting the Project SDK to JDK 12.

The IDE provides a quick fix to convert multi-line string literals to raw string literals, and vice versa:

If your code happens to have redundant leading or trailing backticks (`) around a value in the raw string literals, IntelliJ IDEA detects this and provides a corresponding quick fix.

We've extended the functionality that previously worked only for string literals, and now the IDE can also recognize regular expressions in raw string literals.

Spell-checking works inside raw string literals, as well.

Now, you can paste a string with line separators not only as a string literal but also as a raw string literal. The quotes will be adjusted according to the content of the raw string literal.

We've also extended the functionality of the intention that breaks a string literal and made it work for raw string literals too.

Please note that even though JEP 326 is targeted at JDK 12, it is still a preview feature. This means that according to JEP 12, it is "fully specified and fully implemented, and yet impermanent." If its implementation changes in an upcoming release of Java, we'll make sure to reflect such a change in IntelliJ IDEA as well.

Try this brand new support for raw string literals in the upcoming IntelliJ IDEA 2018.3 and do give us your feedback! Please share your thoughts via the discussion forum, our issue tracker, or on Twitter!

intellij Strings Data Types Literal (computer programming)

Published at DZone with permission of Zlata Kalyuzhnaya, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • SAST: How Code Analysis Tools Look for Security Flaws
  • The Future of Cloud Engineering Evolves
  • Streamlining Your Workflow With the Jenkins HTTP Request Plugin: A Guide to Replacing CURL in Scripts
  • A Simple Union Between .NET Core and Python

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: