Shortcut to Uppercase Selected Text in Oracle SQL Developer

Andrew Mairose picture Andrew Mairose · Jan 26, 2016 · Viewed 54.8k times · Source

I would like to highlight some text in a SQL Developer worksheet and convert it to uppercase with some keyboard shortcut.

Is there any such shortcut in Oracle SQL Developer?

I am using version 4.1.2.

Answer

Sentinel picture Sentinel · Jan 26, 2016

Under Tools->Preferences->Shortcut Keys you can find and/or define the shortcut key combination for the Convert Selection to Uppercase and Convert Selection to Lowercase commands. I have mine mapped to CTRL+U and CTRL+L respectively. There unfortunately does not appear to be a specific command for converting text to Initcap, so the To Upper/Lower/Initcap command is the way to go for that. However, be aware that the To Upper/Lower/Initcap command actually cycles between five format modes:

  • UPPERCASE
  • lowercase
  • Initcap
  • Lower Keywords, Upper Identifiers
  • Upper Keywords, Lower Identifiers

Some of these modes will change the behavior of the code formatter (default key sequence CTRL+F7), and the Tools->Preferences->Code Editor->Completion Insight->Change case as you type setting if you have it enabled.