Formatting SQL to a max line length?
OK, I need to be able to format my SQL scripts such that no line is longer than 50 characters. I have set “Hard wrap at:” value in “Editor > Code Style” and tried various settings in “Editor > Code Style > SQL > General” and have checked the “Inherit general SQL style” checkbox appropriately. However, when I try to use “Reformat Code” it has no effect on the line lengths of my SQL statements.
Can someone either confirm that what I am trying to do is not possible in DataGrip, or tell me what I am missing?
Thanks!
请先登录再写评论。
Hi,
Could you share a screenshot with an example of such an SQL statement? Also, please export your current settings by going to Editor > Code Style, clicking the Settings button, and selecting Export.
It's not possible to share the file here, but you can either attach it to the duplicated internal ticket or upload it to https://uploads.jetbrains.com/ (in this case I will need the uploadID to locate the file).