Skip to Main Content

SQL Developer for VS Code

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Language configuration - support lowercase on enter rules

Itamar TzadokApr 29 2025 — edited Apr 29 2025

The extension supports indent on enter after some keywords:

"onEnterRules": \[

    {

        "beforeText": "^\\\\s\*(?:BEGIN|CASE|THEN|LOOP|DECLARE)\\\\s\*$",

        "action": { "indent": "indent" }

    }

\]

But it's currently just for uppercase. For those of us who write lowercase, especially in case insensitive languages such as plsql, this doesn't work.

Given that it's a regexp pattern, I've tried case insensitive flags, to no avail. If I'm not missing anything, it seems that supporting lowercase requires adding the lowercase form of the keywords to the pattern.

I can of course customize the configuration file for my own needs, but if it is overridden on a new release, it's not the best option.

Can we add the lowercase form to this rule? Alternatively and more generally, can we add a hook to allow users to apply own language configuration via user language configuration file, in addition to the extension's?

Comments
Post Details
Added on Apr 29 2025
0 comments
57 views