How to quick view tables in DataGrip?

Tgo1014 picture Tgo1014 · Aug 3, 2016 · Viewed 10.6k times · Source

In sql express I could setup query shortcuts, so I simply create a "Select * from " shortcut and when I press it with the table name selected it shows me the select result

There's any way I can quick view the table content selecting only the table name in a script?

Answer

moscas picture moscas · Aug 4, 2016

If I got you right, there are several ways to do what you want:

  1. Ctrl+N (Cmd+O for Mac) → type the name of the table, press Enter

  2. If the cursor is on the name of the table inside the script, press F4.

  3. If you are in the query console, the quick way to type "SELECT * FROM" is to type "sel" and press Tab. Then put the name of the table and run the query.

  4. In any place, wether it's SQL or database explorer, press Ctrl+Q (F1 for Mac) and you will see the quick documentation window.