Skip to content

Instantly share code, notes, and snippets.

@filimonov
Last active February 18, 2024 22:40
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filimonov/691990c8e5ce901ca4734482c7cc81f9 to your computer and use it in GitHub Desktop.
Save filimonov/691990c8e5ce901ca4734482c7cc81f9 to your computer and use it in GitHub Desktop.
vscode + clickhouse-client: poorman integration
  1. File->Preferences->Settings terminal.integrated.scrollback, Increase the buffer size for terminal (i use 100000)

  2. File->Prefernces->Keyboard shortcuts workbench.action.terminal.runSelectedText set up some binding like Ctrl+Shift+'

  3. Open terminal window: Terminal->New Terminal

  4. Run clickhouse-client in a terminal.

  5. Highlight the query & hit the shortcut (or use Terminal->Run Selected Text)

Result: Screenshot from 2020-04-02 13-26-47

@hiepxanh
Copy link

hiepxanh commented Jul 6, 2021

perfect useful

@restyler
Copy link

great approach for minimalists, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment