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!

Highlighting for scope of if-statements and begin-blocks

Hi, It would be neat to have sort of a rainbow-highlighting on if-statements and begin/end blocks, see the attached picture. Or at least that vscode can recognize the keywords and the code in between as a separately highlight-able textmate ‘scope’-thingy. This is especially useful with nested code.

Just for context: to get the colorized keywords in the picure, I edited the file ~/.vscode-oss/extensions/oracle.sql-developer-25.3.2-linux-x64/syntaxes/language-configuration.json

{
    "comments": {
        // symbol used for single line comment. Remove this entry if your language does not support line comments
        "lineComment": "--",
        // symbols used for start and end a block comment. Remove this entry if your language does not support block comments
        "blockComment": [ "/*", "*/" ] 
    },
    // symbols used as brackets
    "brackets": [
        ["{", "}"],
        ["[", "]"],
        ["begin", "end"],
        ["if", "end if"],
        ["loop", "end loop"],
        ["(", ")"] 
    ],
...

I've added the relevant keywords as pairs to the ‘brackets’ array.

Comments
Post Details
Added on Nov 28 2025
0 comments
57 views