Is your feature request related to a problem? Please describe.
The way Formatter killed off all my indentation cause me a lot of trouble in reading the code. Please don't do that.
-- Origin
CREATE TABLE contact_groups(
contact_id INTEGER,
group_id INTEGER,
PRIMARY KEY (contact_id, group_id),
FOREIGN KEY (contact_id)
REFERENCES contacts (contact_id)
ON DELETE CASCADE
ON UPDATE NO ACTION,
FOREIGN KEY (group_id)
REFERENCES groups (group_id)
ON DELETE CASCADE
ON UPDATE NO ACTION
);
-- Formatted
CREATE TABLE contact_groups(
contact_id INTEGER,
group_id INTEGER,
PRIMARY KEY (contact_id, group_id),
FOREIGN KEY (contact_id) REFERENCES contacts (contact_id) ON DELETE CASCADE ON UPDATE NO ACTION,
FOREIGN KEY (group_id) REFERENCES groups (group_id) ON DELETE CASCADE ON UPDATE NO ACTION
);
Describe the solution you'd like
I simply want the formatter respect my indentation. Therefore I would like to add this option:
Is your feature request related to a problem? Please describe. The way Formatter killed off all my indentation cause me a lot of trouble in reading the code. Please don't do that.
Describe the solution you'd like I simply want the formatter respect my indentation. Therefore I would like to add this option:
Where as:
preserve
means nothing changes (default)nested
detects certain keywords and send them to a newline. For instance,ON
andREFERENCES
require a new indented line. (my format above)crowed
packs everything in one line (the current format)