Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
projects:zibaldone:vscode [2021/10/08 10:06] – created scipio | projects:zibaldone:vscode [2025/04/16 06:59] (current) – [continue.dev] sscipioni | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
Visual Studio Code Editor | Visual Studio Code Editor | ||
+ | |||
+ | ===== base settings ===== | ||
+ | |||
< | < | ||
sudo apt install fonts-firacode | sudo apt install fonts-firacode | ||
+ | paru -S ttf-fira-code | ||
</ | </ | ||
<file json settings.json> | <file json settings.json> | ||
{ | { | ||
- | " | + | " |
" | " | ||
" | " | ||
" | " | ||
" | " | ||
- | " | + | " |
+ | " | ||
} | } | ||
</ | </ | ||
Line 26: | Line 31: | ||
code --install-extension eg2.tslint | code --install-extension eg2.tslint | ||
code --install-extension ms-python.python | code --install-extension ms-python.python | ||
+ | </ | ||
+ | |||
+ | ===== docker ===== | ||
+ | |||
+ | on vscodium enable marketplace and install dev-containers extension | ||
+ | < | ||
+ | yay -S vscodium-bin-marketplace | ||
+ | </ | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | first time remote containers attach: | ||
+ | * run container | ||
+ | * F1: Remote-Containers: | ||
+ | * F1: Remote-Containers: | ||
+ | <code | mev%2unit.json> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | * close vscode | ||
+ | * destroy container | ||
+ | |||
+ | remote containers attach: | ||
+ | * run container | ||
+ | * F1: Remote-Containers: | ||
+ | |||
+ | edit created configurations: | ||
+ | * ctrl+shift+p (F1 command palette): Remote-Containers: | ||
+ | |||
+ | |||
+ | <code | angular remote configuration> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | |||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | For debugger create in app folder (for example dnnutils) file .vscode/ | ||
+ | <code | download> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | |||
+ | ] | ||
+ | } | ||
+ | |||
</ | </ | ||
===== keyboard ===== | ===== keyboard ===== | ||
Line 65: | Line 153: | ||
* ctrl-F2: add cursor to each occurrence of current word | * ctrl-F2: add cursor to each occurrence of current word | ||
* ctrl-g: go to line | * ctrl-g: go to line | ||
+ | |||
+ | |||
+ | ===== continue.dev ===== | ||
+ | |||
+ | install ollama | ||
+ | < | ||
+ | yay -S ollama | ||
+ | |||
+ | sudo systemctl enable ollama | ||
+ | sudo systemctl start ollama | ||
+ | |||
+ | ollama pull nomic-embed-text: | ||
+ | ollama pull qwen2.5-coder: | ||
+ | ollama pull llama3.1:8b | ||
+ | </ | ||
+ | |||
+ | disable copilot github CTRL+SHIFT+p | ||
+ | |||
+ | install continue.dev extension | ||
+ | |||
+ | |||
+ | <code | ~/ | ||
+ | name: Local Assistant | ||
+ | version: 1.0.0 | ||
+ | schema: v1 | ||
+ | models: | ||
+ | - name: Llama 3.1 8B | ||
+ | provider: ollama | ||
+ | model: llama3.1:8b | ||
+ | roles: | ||
+ | - chat | ||
+ | - edit | ||
+ | - apply | ||
+ | - name: Qwen2.5-Coder 1.5B | ||
+ | provider: ollama | ||
+ | model: qwen2.5-coder: | ||
+ | roles: | ||
+ | - autocomplete | ||
+ | - name: Nomic Embed | ||
+ | provider: ollama | ||
+ | model: nomic-embed-text: | ||
+ | roles: | ||
+ | - embed | ||
+ | - name: Autodetect | ||
+ | provider: ollama | ||
+ | model: AUTODETECT | ||
+ | context: | ||
+ | - provider: code | ||
+ | - provider: docs | ||
+ | - provider: diff | ||
+ | - provider: terminal | ||
+ | - provider: problems | ||
+ | - provider: folder | ||
+ | - provider: codebase | ||
+ | </ | ||
+ |