Eclipse Galileo SQL Editor:是否有代码格式化(整洁)功能?

发布于 2024-08-20 21:37:36 字数 126 浏览 1 评论 0原文

我确实喜欢现在与 Eclipse 捆绑在一起的 SQL 编辑器,但我似乎找不到一种方法让它格式化我的代码,就像 eclipse 与我的 java.sql 一样。

我错过了什么吗,或者有人有其他选择吗?

谢谢

I do like the SQL editor now bundled with Eclipse but I can't seem to find a way for it to format my code like eclipse will with my java.

Did I miss something, or does anybody have any alternatives?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ぽ尐不点ル 2024-08-27 21:37:36

这在过去曾困扰过我,但我把它搁置起来,直到我看到你的问题。 DBViewer 插件似乎做得相当不错做得不错,但我只用基本的 SQL 对其进行了测试。例如,它将转换

select * from urbase order by foo;

SELECT
        *
    FROM
        urbase
    ORDER BY
        foo

尽管可能有更好的插件,但它在我测试的所有插件中表现最好。

This had bothered me in the past, but I shelved it until I saw your question. The DBViewer plug-in seems to do a fairly decent job of this, but I only tested it with basic SQL. For example, it will transform

select * from urbase order by foo;

into

SELECT
        *
    FROM
        urbase
    ORDER BY
        foo

This does the best job out of any that I tested, although there might be better plug-ins out there.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文