换成 idea2023.3.6后发现一个问题
编辑sql文件时,如果sql语句中间回车换行,编辑器会在新行自动缩进。
如:
sql
-- 换行前
select * from table1 where 1=1;
-- 换行后,会自动缩进4个空格
select * from table1
where 1=1;
我在编辑时感觉非常别扭,调了很久idea里的 code style
后来觉得可能是新版idea的插件导致的
就发现 Plugins 里有个 Database Tools and SQL ,disable后重启就好了
不过Database Tools and SQL 在语法高亮上的确方便一点