If I go to create another new table, give it a name, and then in the Like section on the Advance tab, I select a table, and enable each of the With * options, the following SQL is produced:
CREATE TABLE public.test2 LIKE public.test INCLUDING DEFAULTS INCLUDING CONSTRAINTS INCLUDING INDEXES INCLUDING STORAGE INCLUDING COMMENTSWITH ( OIDS = FALSE ) TABLESPACE pg_default;
The LIKE statement should appear in the column list section, so should be surrounded in parentheses. Also, the WITH statement here is not on a new line.
So this should be:
CREATE TABLE public.test2 ( LIKE public.test INCLUDING DEFAULTS INCLUDING CONSTRAINTS INCLUDING INDEXES INCLUDING STORAGE INCLUDING COMMENTS ) WITH ( OIDS = FALSE ) TABLESPACE pg_default;