Our extension’s latest update (24.3) was released yesterday! If your VS Code hasn’t already updated the SQL Developer extension, now’s the time 🙂

📣 The BIG feature for 24.3 was our PL/SQL Debugger.
📣 Read the full changelog.

But there were several other nice updates and features, including:

Formatter Preferences

Most of the basic formatter preferences were moved over from classic SQL Dev to the extension. We have more of those coming soon.

For now you can see these in VS Code’s Settings. Just navigate to the Extensions section, and then to the SQL Developer area. You can use the File menu to get to the preferences/settings. or use the command palette.

The command palette is your best friend in VS Code.
It’s a few clicks away, either way you go.

So let’s take this block of code, and see what happens when we play with UPPER keywords, leading vs appending commas, and the indentation/spacing.

begin
DBMS_NETWORK_ACL_ADMIN.APPEND_HOST_ACE(
 host => '192.168.1.191',
 lower_port=> 4000,
 upper_port=> 4999,
 ace  =>  xs$ace_type(privilege_list => xs$name_list('jdwp'),
 principal_name => 'HR',
 principal_type => xs_acl.ptype_db));
end;
/

Drag a SQL worksheet over to the right, till it docks. Then you can see your formatter preferences side-by-side with your code.

Makes some changes, and format your doc. No need to hit ‘save’ or ‘apply’ – VS Code settings are applied IMMEDIATELY.

Demo (click on the image to go fullscreen)

Note in the context menu of your editor you have both:

  • Format Document
  • Format Selection

The format selection support was also introduced in 24.3. So now we can format some or all of our code.

Task Manager

With the ability to have multiple SQL Worksheets going with multiple connections doing multiple things, it begs the question: Where can we go to see what’s happening, or cancel stuff?

As you start running things, things that take more than a second or 3 to finish, you’ll see these items popping up on a new tab in your output panel, ‘Task Monitor.’

Note these will appear ONLY as they’re running. When they’re done, they go, bye-bye.

And if you want to stop waiting…simply right-click and ‘Cancel.’

Author

I'm a Distinguished Product Manager at Oracle. My mission is to help you and your company be more efficient with our database tools.

1 Comment

  1. Hi Jeff, as far as the format settings go, I have a few questions:
    – Will there be additional format settings available in future releases? For instance, I was looking for a setting that would left-align my SELECT statement rather than bumping out the FROM and WHERE keywords to align with the end of the SELECT keyword by the appropriate number of spaces.
    – Perhaps this is above and beyond the scope of the SQL Developer VS Code extension, but will there be any integration with EditorConfig (https://editorconfig.org/)? It would be great if a developer could exhaustively specify all formatting rules, which VS Code would then (automatically) detect and use that when formatting the document. The EditorConfig setup is great because this can be distributed to any and all developers to promote a consistent code style. It can also be used in a CI/CD setup as well, so that commits are vetted. (I come from a .NET background and looking for ways to accomplish what I used to accomplish there but in the Oracle universe.)

Write A Comment