Tired of opening browser to access to ChatGPT for programming? Introducing InsCode, the ultimate time-saving plugin designed to streamline your experience with ChatGPT and revolutionize the way you generate code. InsCode empowers programmers with a simple and efficient solution to access ChatGPT and obtain quick answers to coding queries.
With InsCode, you can now swiftly interact with ChatGPT to receive immediate assistance and generate code to your specific needs. Whether you're looking for quick facts, or simply seeking code suggestions, InsCode is your go-to companion for rapid development.
This is a plugin of Wox in Windows.
- Clone the repo:
git clone https://www.github.com/2037/InsCode
- Unzip it to
%LOCALAPPDATA%\Wox\app-1.4.1196\Plugins
(change to your app version directory if needed) - Go to directory and install requirements:
pip install -r requirements.txt
- Get an OpenAI API key: https://platform.openai.com/account/api-keys
- Open and insert your OpenAI API key to system environment. Instruction
- Open Wox and type
i {question}
to ask your question (maybe ask for a helloworld program) in your favorite language. - Paste it from clipboard or view it in Win+V if you use Win11.
Hit Shift+Enter
after you type "i " to enter the context menu.
Customize your instructions to GPT in presets.json
.
Set your prefered model in preference.json
. The default model is gpt-3.5-turbo. The available models and their variants are GPT3.5, GPT4. Set your max_token
to higher if needed (such like components in HTML). Count Your Token Here. Set is_keepitshort
to false
to include explainations, default as true
to only keep codes in first code block.
Demostrate a short request for ChatGPT without opening browser. Only Ctrl+Space
(shortcut for Wox), i {question}
and Enter
.
Then
Ctrl+V
. There you go!