小写的 Oracle SQLDeveloper 自动完成(大写怎么样)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1599544/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 02:11:29  来源:igfitidea点击:

Oracle SQLDeveloper Autocomplete in Lowercase (How about Uppercase)

oracleautocompleteuppercaseoracle-sqldeveloper

提问by Nap

I am currently using the latest Oracle sql developer. I just have one nuisance here. When I do auto-complete of table names or columns, they show up in lower case. As most people I do have coding guidelines in SQL statements and I usually want table names, column names, and any other identifiers in all capitals.

我目前正在使用最新的 Oracle sql 开发人员。我这里只有一件麻烦事。当我自动完成表名或列时,它们以小写形式显示。与大多数人一样,我确实在 SQL 语句中有编码指南,而且我通常希望表名、列名和任何其他标识符都大写。

I tried to check the settings in sql developer and the "Code Insight" section does not have any option for this. Is there any other tweak for this?

我试图检查 sql developer 中的设置,“代码洞察”部分没有任何选项。有没有其他调整?

采纳答案by pierre

I'm using SQL Developer 2.1 (EA) from http://www.oracle.com/technology/software/products/sql/index21_EA1.html

我正在使用来自http://www.oracle.com/technology/software/products/sql/index21_EA1.html 的SQL Developer 2.1 (EA)

.. which IMHO is much better than the 'current' version that I believe you're using. In the 2.1 version you can goto Tools > Preferences > Database > SQL Formatter > Oracle Formatting and hit 'Edit' to alter the behaviour of capitalisation effects.

.. 恕我直言,这比我相信您正在使用的“当前”版本要好得多。在 2.1 版本中,您可以转到 Tools > Preferences > Database > SQL Formatter > Oracle Formatting 并点击“Edit”来改变大小写效果的行为。

It is my understanding, however, that in a Worksheet this will not 'autoformat' .. it only does this in procedures, packages, views, and triggers. (So you'll have to highligh, right-click, Format to do this in a worksheet).

然而,我的理解是,在工作表中,这不会“自动格式化”……它只在过程、包、视图和触发器中这样做。(因此,您必须突出显示、右键单击、设置格式才能在工作表中执行此操作)。

回答by Gabriel Rosas

I'm using SQL Developer 3.1.07 and you can change the case of the autocompleted table names by going to Tools > Preferences > Code Editor > Completion Insight there is an option for 'Change case as you type'.

我正在使用 SQL Developer 3.1.07,您可以通过转到“工具”>“首选项”>“代码编辑器”>“完成洞察”来更改自动完成表名的大小写,其中有一个“键入时更改大小写”选项。

回答by Manuel

For those using SQL Developer version 19.1.0.x, you can adjust upper-/lower-case identifiers and keywords in Tools -> Preferences -> Code Editor -> Format

对于使用 SQL Developer 19.1.0.x 版的用户,可以在工具 -> 首选项 -> 代码编辑器 -> 格式中调整大小写标识符和关键字

HTH

HTH

回答by mannedear

I'm using SQL Developer 4.0.3.16 My Requirement is to see everything in uppercase while typing.

我正在使用 SQL Developer 4.0.3.16 我的要求是在键入时以大写形式查看所有内容。

Tried the below setting but didn't notice any change happening. Tools > Preferences > Database > SQL Formatter > Oracle Formatting and hit 'Edit' to alter the behaviour of capitalisation effects.

尝试了以下设置,但没有注意到发生任何变化。工具 > 首选项 > 数据库 > SQL 格式化程序 > Oracle 格式化并点击“编辑”来改变大小写效果的行为。

Tried the below setting and I'm able to see some change happening. This setting do not convert the text to uppercase as when we type but when we hit 'Enter' button, all text will change to uppercase. Tools > Preferences > Code Editor > Completion Insight > 'Change case as you type' to 'Upper Case'.

尝试了以下设置,我能够看到发生了一些变化。此设置不会像我们键入时那样将文本转换为大写,但是当我们点击“Enter”按钮时,所有文本都将变为大写。工具 > 首选项 > 代码编辑器 > Completion Insight >“在键入时更改大小写”为“大写”。

Hope this helps!

希望这可以帮助!