projects:zibaldone:vscode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
projects:zibaldone:vscode [2022/07/16 10:59] sscipioniprojects:zibaldone:vscode [2025/04/16 06:59] (current) – [continue.dev] sscipioni
Line 8: Line 8:
 <code> <code>
 sudo apt install fonts-firacode sudo apt install fonts-firacode
 +paru -S ttf-fira-code
 </code> </code>
  
 <file json settings.json> <file json settings.json>
 { {
-    "editor.fontSize": 14,+    "editor.fontSize": 16,
     "editor.fontFamily": "Fira Code",     "editor.fontFamily": "Fira Code",
     "editor.fontLigatures": true,     "editor.fontLigatures": true,
     "window.zoomLevel": 1.5,     "window.zoomLevel": 1.5,
     "editor.tabSize": 4,     "editor.tabSize": 4,
-    "editor.insertSpaces": true+    "editor.insertSpaces": true
 +    "python.formatting.provider": "black"
 } }
 </file> </file>
Line 33: Line 35:
 ===== docker ===== ===== docker =====
  
-  * https://code.visualstudio.com/docs/remote/attach-container+on vscodium enable marketplace and install dev-containers extension 
 +<code
 +yay -S vscodium-bin-marketplace 
 +</code>
  
-remote containers configuration: +  https://code.visualstudio.com/docs/remote/attach-container
-  ctrl+shift+p (F1 command palette)Remote-Containers: Open Attached Container Configuration File+
  
 first time remote containers attach: first time remote containers attach:
Line 44: Line 48:
 <code | mev%2unit.json> <code | mev%2unit.json>
 { {
- "workspaceFolder": "/app/mev_unit",+ "workspaceFolder": "/app/mev_query",
  "extensions": [  "extensions": [
  "ms-python.python",  "ms-python.python",
Line 50: Line 54:
  ],  ],
  "settings": {  "settings": {
- "terminal.integrated.shell.linux": "/bin/bash", 
  "python.defaultInterpreterPath": "/usr/local/bin/python",  "python.defaultInterpreterPath": "/usr/local/bin/python",
  "python.formatting.provider": "black",  "python.formatting.provider": "black",
- "python.formatting.blackPath": "/usr/local/bin/black", 
  "python.linting.enabled": true,  "python.linting.enabled": true,
  "python.linting.pylintEnabled": true,  "python.linting.pylintEnabled": true,
Line 64: Line 66:
  "editor.formatOnSave": true  "editor.formatOnSave": true
  },  },
- "python.testing.pytestPath": "/usr/local/bin/pytest",+ "python.testing.pytestPath": "pytest",
  "python.testing.pytestEnabled": true  "python.testing.pytestEnabled": true
  }  }
Line 76: Line 78:
   * F1: Remote-Containers: Attach to Running Container   * F1: Remote-Containers: Attach to Running Container
  
 +edit created configurations:
 +  * ctrl+shift+p (F1 command palette): Remote-Containers: Open Attached Container Configuration File
  
 +
 +<code | angular remote configuration>
 +{
 + "workspaceFolder": "/app",
 + "extensions": [
 + "christian-kohler.npm-intellisense",
 + "xabikos.JavaScriptSnippets",
 +        "dbaeumer.vscode-eslint"
 + ],
 + "settings": {
 +
 + }
 +}
 +</code>
 +
 +For debugger create in app folder (for example dnnutils) file .vscode/launch.json. From vscode attached to docker container is now enabled debugger from 'Run and Debug' view
 +<code | download>
 +{
 +    "version": "0.2.0",
 +    "configurations": [
 +        {
 +            "name": "Python: Attach",
 +            "type": "python",
 +            "request": "attach",
 +            "connect": {
 +              "host": "localhost",
 +              "port": 5678
 +            }
 +          }
 +
 +    ]
 +}
 +
 +</code>
 ===== keyboard ===== ===== keyboard =====
  
Line 115: 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
 +<code>
 +yay -S ollama
 +
 +sudo systemctl enable ollama
 +sudo systemctl start ollama
 +
 +ollama pull nomic-embed-text:latest
 +ollama pull qwen2.5-coder:1.5b-base
 +ollama pull llama3.1:8b
 +</code>
 +
 +disable copilot github CTRL+SHIFT+p
 +
 +install continue.dev extension
 +
 +
 +<code | ~/.continue/config.yaml>
 +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:1.5b-base
 +    roles:
 +      - autocomplete
 +  - name: Nomic Embed
 +    provider: ollama
 +    model: nomic-embed-text:latest
 +    roles:
 +      - embed
 +  - name: Autodetect
 +    provider: ollama
 +    model: AUTODETECT
 +context:
 +  - provider: code
 +  - provider: docs
 +  - provider: diff
 +  - provider: terminal
 +  - provider: problems
 +  - provider: folder
 +  - provider: codebase
 +</code>
 +
  • projects/zibaldone/vscode.1657961940.txt.gz
  • Last modified: 2022/07/16 10:59
  • by sscipioni