DEV Community

Cover image for Unleash your power with Cocaptain
Ice
Ice

Posted on

Unleash your power with Cocaptain

Introduction

  • Cocaptain is a vscode extension that allows you to use chatgpt inside vscode without api-key.
  • Cocaptain combines the power of chatgpt and vscode to make you more powerful.
  • Fore more details : https://github.com/Ayyoub-ESSADEQ/cocaptain

What you can do with Cocaptain ?

Chat panel :

  • Click on the chat icon and ask chatgpt what ever you want :

chat panel demo

  • You could execute code directly from the chatpanel.
  • You could give a custom name to the conversation.
  • You start new conversation
  • In case there is a problem, you could reload the extension.
  • All those functionalities are available in the context menu of the webview (UI) of the extension.

Project Structure Creation :

  1. Create a powershell file, let's call it projectStructure.ps1
  2. Inside the file put what ever you want your project to looks like. For example :
# ask create a script that create a folder called test (in the current directory) that contains the following folders : public, src, and a file called package.json. Also, the folder folder called public contains the following folders : styles, scripts, images ?
Enter fullscreen mode Exit fullscreen mode
  1. click tab.
  2. Enjoy the magic

powershell demo

Code generation :

  1. Create a file of your choice. For example, test.py.
  2. Describe what you want to you want chatgpt to generate (just make sure to point chatgpt that you want only the codeblock). For example, put this inside test.py :
# ask create a script that draw the graph of sin(x)+cos(y) using matplot lib (only the code)
Enter fullscreen mode Exit fullscreen mode
  1. click tab and wait.

Use your imagination :

  • You could do whatever you want with cocaptain, it's free and powerfull.

Top comments (0)