Try my other GPT extension, CodeLens2GPT!
Use OpenAI ChatGPT and Google Gemini through your comments.
Code completion
Chat
Edit
How to use:
- Type "//gpt " (or "#gpt " "'gpt " etc.)
- Type your prompt
- Press Enter key
Keywords:
- gpt => default (complete)
- gptc => chat
- gpte => edit
- gptm => complete
Supported languages/files:
- Batch .bat ::
- C# .cs .csx .aspx .razor .cshtml //
- C .c .cc //
- C++ .cpp .cxx .c++ .h .hh .hpp .hxx .h++ //
- Cmake .cmake #
- CoffeeScript .coffee .litcoffee #
- F# .fs .fsi .fsx .fsscript //
- Go .go //
- Groovy .groovy .gvy .gy .gsh //
- Html .html .htm <!--
- Ini .ini ;
- Java .java .class .jmod .jar //
- JavaScript .js .cjs .mjs //
- Less .less //
- Lisp .lisp .lsp .l .cl .fasl ;
- Lua .lua --
- Make .mak .make #
- Objective C .m .mmi //
- Perl .pl .pm #
- PHP .php .phtml .php3 .php4 .php5 .phps //
- Python .py .pyi .pyc .pyd .pyo .pyw .pyz #
- R .r .rdata .rds .rda #
- Ruby .rb .rake #
- Rust .rs .rlib //
- Scheme .scm .ss ;
- Shader .shader .compute .shadervariant .shadervariants .raytrace .hlsl .glsl .glfs .glvs .glgs .glinc .glslv .glslf .glsls .vert .tesc .tese .geom .frag .comp .vsh .fsh .gsh .tcsh .tesh //
- ShellScript .sh .csh #
- Sql .sql --
- Swift .swift //
- TypeScript .ts .tsx //
- Visual Basic .vb .vbe .vbs '
- Xml .xml <!--
- YAML .yaml .yml #
Requirements (OpenAI ChatGPT): You need an OpenAI account and provide it's API key to this extension https://platform.openai.com/account/api-keys
Provide key by one of the below
- Create an environment variable called OPENAI_API_KEY with the API key
- Create a file with name .openai under user profile directory with the API key
- Set API key in options, Tools->Options->Comment2GPT->General->Authentication
Requirements (Google Gemini): You need a Google account and provide it's API key to this extension https://ai.google.dev/gemini-api/docs/api-key
Provide key by one of the below
- Create an environment variable called GOOGLE_API_KEY with the API key
- Create a file with name .gemini under user profile directory with the API key
- Set API key in options, Tools->Options->Comment2GPT->General->Authentication
Pricing: This extension is free to use, but you may need to pay for OpenAI or Google AI services https://openai.com/pricing https://ai.google.dev/pricing
Bug/error report & suggestions: Either use e-mail or Q&A here
Notice: This extension may collect telemetry data about your use of the software for error tracking and usage metrics. Data is anonymous and telemetry can be disabled in the options if you have privacy concerns.