Skip to content

Instantly share code, notes, and snippets.

@ddeveloperr
Created April 3, 2019 15:23
Show Gist options
  • Save ddeveloperr/a66cfc16d5a45f06d4dc650ed041529f to your computer and use it in GitHub Desktop.
Save ddeveloperr/a66cfc16d5a45f06d4dc650ed041529f to your computer and use it in GitHub Desktop.
How to comment & uncomment SQL code in DataGrip IDE
-- How to comment & uncomment SQL code in DataGrip IDE
-- 1. Mark SQL code
SELECT TOP 3 *
FROM CUSTOMER
WHERE Customerid ='4de3092d03b742f3b2b88cf6fe0b09d0'
-- 2. Press "CTRL"+"/" (Slash) on the keyboard
--Code will become:
-- SELECT TOP 3 *
-- FROM AspDotNetStorefront263v8.DBO.CUSTOMER
-- WHERE Shopperid ='4de3092d03b742f3b2b88cf6fe0b09d0'
-- 3. If you need to uncommment it, you need to mark commented code and pres the same keyboard combination
-- "CTRL"+"/" (Slash) on the keyboard
--Code will become uncommented again:
SELECT TOP 3 *
FROM CUSTOMER
WHERE Customerid ='4de3092d03b742f3b2b88cf6fe0b09d0'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment