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/09/13 21:44] (current) – 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 | ||
+ | |||
+ | |||
+ | ===== ollama ===== | ||
+ | |||
+ | models: | ||
+ | - https:// | ||
+ | |||
+ | install ollama | ||
+ | < | ||
+ | yay -S ollama | ||
+ | |||
+ | sudo systemctl enable ollama | ||
+ | sudo systemctl start ollama | ||
+ | |||
+ | ollama pull hoangquan456/ | ||
+ | ollama pull nomic-embed-text: | ||
+ | ollama pull llama3.2 | ||
+ | |||
+ | |||
+ | # mimo and a alias | ||
+ | ollama pull hf.co/ | ||
+ | ollama cp hf.co/ | ||
+ | |||
+ | # vision | ||
+ | ollama pull ZimaBlueAI/ | ||
+ | </ | ||
+ | |||
+ | ===== void ===== | ||
+ | |||
+ | < | ||
+ | void --install-extension ms-python.python@2025.6.1 | ||
+ | </ | ||
+ | |||
+ | use pyright instead of pylance as python language server | ||
+ | |||
+ | ===== kilo code ===== | ||
+ | |||
+ | disable copilot github: CTRL+SHIFT+p and search for "Chat: hide AI ..." | ||
+ | |||
+ | |||
+ | qdrant vectore store | ||
+ | <code | docker-compose.yaml> | ||
+ | services: | ||
+ | qdrant: | ||
+ | image: qdrant/ | ||
+ | ports: | ||
+ | - ' | ||
+ | volumes: | ||
+ | - qdrant_storage:/ | ||
+ | restart: unless-stopped | ||
+ | volumes: | ||
+ | qdrant_storage: | ||
+ | </ | ||
+ | ===== continue.dev ===== | ||
+ | |||
+ | |||
+ | |||
+ | disable copilot github: CTRL+SHIFT+p and search for "Chat: hide AI ..." | ||
+ | |||
+ | install continue.dev extension | ||
+ | |||
+ | |||
+ | <code | ~/ | ||
+ | name: Local Assistant | ||
+ | version: 1.0.0 | ||
+ | schema: v1 | ||
+ | models: | ||
+ | - name: Qwen3-coder | ||
+ | provider: ollama | ||
+ | apiBase: http:// | ||
+ | model: hoangquan456/ | ||
+ | roles: | ||
+ | - edit | ||
+ | - apply | ||
+ | - autocomplete | ||
+ | - chat | ||
+ | - name: Nomic Embed | ||
+ | provider: ollama | ||
+ | apiBase: http:// | ||
+ | model: nomic-embed-text: | ||
+ | roles: | ||
+ | - embed | ||
+ | - name: Autodetect | ||
+ | provider: ollama | ||
+ | model: AUTODETECT | ||
+ | system_message: | ||
+ | context_providers: | ||
+ | - name: " | ||
+ | params: | ||
+ | max_chars: 2000 # Prevent overload | ||
+ | - name: " | ||
+ | params: | ||
+ | max_lines: 50 | ||
+ | - name: " | ||
+ | params: | ||
+ | max_chars: 1000 | ||
+ | - name: " | ||
+ | params: | ||
+ | repo: " | ||
+ | - name: " | ||
+ | params: | ||
+ | max_results: | ||
+ | - name: " | ||
+ | params: | ||
+ | max_chars: 1500 | ||
+ | - name: " | ||
+ | params: | ||
+ | max_files: 5 | ||
+ | </ | ||
+ |