Performing the Auto-Formatting (CTRL-F7) the Spacing Around the Comma is Removed

(Doc ID 2297833.1)

Last updated on AUGUST 18, 2017

Applies to:

Oracle SQL Developer - Version 17.2 and later
Information in this document applies to any platform.

Symptoms

If you have a SQL, PL/SQL block, array, or any variation of text that which contains a comma with proper spacing, when performing the auto-formatting (Ctrl-F7), the spacing around the comma is removed (by default).

Example:

SELECT
  'Comma, Spacing Issue'
FROM
  dual;



Press Ctl F7 - Turns into this:

SELECT
  'Comma,Spacing Issue'
FROM
  dual;



This becomes a major issue, as the spacing being removed can produce unintended results. The auto formatting (Ctrl-F7) should ignore removing the white space after commas when withing single quotes.

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms