Where does Squirrel SQL store its auto correct entries?

旧街凉风 提交于 2019-12-24 10:21:58

问题


I use Squirrel SQL as my goto SQL editor for DB2 for iSeries, and one feature I love is the autocorrect. I enter shortcuts into the editor like ssf and "select * from" pops up.

I know it's possible to add entries to the library one row at a time, but how can I add multiple entries at once? I understand it could be an in-depth editing of resource files, and I'm comfortable enough with Java to make the edit but not find the actual resource.

The bookmarks feature doesn't suit my needs for this, and it still wouldn't allow me to enter the 140+ autocorrections I want to add.


回答1:


I found it--after digging through the class files, I found the file they referred to an xml stored at .squirrel-sql\plugins\syntax\autocorrectdata.xml

That saves a ton of time. Now I can type a table name and it will auto-populate the table schema, table name, and the preferred correlation.




回答2:


For newer versions of Squirrel-SQL that store user-defined autocorrect data in local user folders, see Where is the Syntax-Autocorrect data stored in Squirrel-SQL snapshot 20190612_2127?



来源:https://stackoverflow.com/questions/53744907/where-does-squirrel-sql-store-its-auto-correct-entries

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!