Tune for VSCode
Tune is a handy extension for Visual Studio Code that lets you chat with large language models (LLMs) right from your text editor. If you’ve ever wanted to get quick answers or brainstorm ideas without switching apps, Tune is here to help!
Setup
- Install nodejs.
- Set OPENAI_KEY in settings. By default Tune uses gpt4o-mini. But you can change it
Features
.chat file
To start chatting create a .chat file. Use <Shift>+<Enter>
to trigger chat response
variable expansion
you can use {filename} to inject filename contents to the chat
Other LLMS
- To use different LLM create a .config.js file that represents http payload.
e.g. lets create a claude config that uses openrouter.ai
({
url: "https://openrouter.ai/api/v1/chat/completions",
method: "POST",
headers: {
"content-type": "application/json",
authorization: `Bearer ${OPEN_ROUTER_KEY}`,
},
body: JSON.stringify({
...payload,
model: "anthropic/claude-3.5-sonnet"
})
})
put OPEN_ROUTER_KEY to .env file
use the file as variable
u: {claude}
What is the meaning of life?
You can name it default.config.js
then it will be used automatically
Help System Prompt
You can ask for help using
s: {esc:tune_help}
u: how to make a tool?