reformat mybatis xml file not working

Answered

i write mybatis sql in xml file eg:

reformat file is very well , but when is use <if> tags it not working eg:

how can i reformat sql that contain mybatis tags

5 comments
Comment actions Permalink

Do you use any MyBatis plugin? Seems reformating should be covered by the plugin in use. 

Is it possible to share sample project example for investigation?

 
0
Comment actions Permalink

Thank you for reply , i didn't use any MyBatis plugin , for confirm question i reinstall idea 2022.1.3 , when i write sql in xml file i just use Code -> Reformat Code to reformat my sql .

0
Comment actions Permalink

Is it possible to share a sample project (archive with .xml file and .idea folder included) for reproducing that?

 
0
Comment actions Permalink

Of course , i upload to google , https://drive.google.com/file/d/1iu5MIomkPhBzbRVMQ_sblL8g60uW_U84/view?usp=sharing  click this link can download my demo project , thank you very much.

0
Comment actions Permalink

Filed the bug request for this. 

Here is a related issue on YouTrack

Feel free to watch it in order to be notified once it has updates. See this article if you are not familiar with YouTrack.

0

Please sign in to leave a comment.