Skip to content

Commit 690ea9a

Browse files
committed
simplifying things
1 parent c4f9499 commit 690ea9a

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

installing-duckdb.qmd

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,6 @@ DuckDB has been installed on the MEDS server. We also recommend to install it on
1212

1313
You can use DuckDB directly from the terminal but if you also want to have the option to have both a SQL script and the terminal open, we recommend to use visual code. There is one setting to be done to link the script and the terminal:
1414

15-
In Visual Code:
16-
17-
- open the palette <kbd>Shift</kbd>+<kbd>Cmd</kbd>+<kbd>P</kbd> and search for: `Preferences: Open Keyboard Shortcuts (JSON)` ![](img/duckdb-vscode_setup.png)
18-
19-
- enter the following text & save
20-
```json
21-
// Place your key bindings in this file to override the defaults
22-
[
23-
{
24-
"key": "shift+enter",
25-
"command": "workbench.action.terminal.runSelectedText"
26-
}
27-
]
28-
29-
```
30-
31-
OR alternative method to set this up:
32-
3315
Under the main VS menu, go to _Settings_ -> Keyboard Shortcuts, search for "run selected", the "run selected text in active terminal" will be one of the options. Set the shift-enter keypress by double-clicking. Right-click on the _When_ column, select _Change When Expression_, and add `editorLangId == 'sql'` to restrict to just SQL files and not every kind of file.
3416

3517
*Now you can hit <kbd>Shift</kbd>+<kbd>Return</kbd> at then end of a line in your SQL script and it should run the command directly in the terminal!*

0 commit comments

Comments
 (0)