usually this is quite slow... compared to cloud based AI... but it can work...
How To Integrate a Local LLM Into VS Code - The New Stack
Integrating VS Code with a local LLM like Ollama offers a powerful tool you can leverage for whatever coding or coding-adjacent need you have.
The extension in question is called Continue.