How to auto-capitalize SQL keywords in Java string (IDEA)?

Answered

I know there is a setting to auto-capitalize SQL keywords in the console or .sql files BUT is there a way to auto-capitalize SQL inside Java string?

IntelliJ IDEA already autocompletes the SQL queries in Java strings but it completes them with the casing I started writing them.

1 comment
Comment actions Permalink

Hello,

Word case-related settings can be configured on the File | Settings | Editor | Code Style | SQL | General > Case page, and applied to SQL strings injected into a Java file with Ctrl+Alt+L while in the editor.

8

Please sign in to leave a comment.