
Leave Remove Comments unchecked and the SQL Formatter keeps your comments in the output. Check the result anyway: comments and database-specific hints can affect how a query is read or run.
select id /* keep identifier */ from users into Raw SQL.SELECT id /* keep identifier */ on the first line and FROM users on the second.SELECT id / FROM users.Remove Comments off: SELECT id /* keep identifier */ FROM users Remove Comments on: SELECT id FROM users
A -- line comment runs to the end of its line; a /* ... */ block comment ends at its closing marker. If a line break moves, a -- comment can swallow SQL that should run. Keep a copy of the original, especially when it contains optimizer hints.
