GithubHelp home page GithubHelp logo

nikhils98 / vscode-chatgpt-easy-copy Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 11.03 MB

Directly copy selected code or files from vscode to a chatgpt tab in browser

JavaScript 49.18% TypeScript 50.82%

vscode-chatgpt-easy-copy's Introduction

VSCode Chatgpt Easy Copy is a simple utility to make it slightly convenient to copy code/text and files from vscode into chatgpt's textarea using commands which can be assigned a keyboard shortcut.

There are two components at play here: a chrome extension and vscode extension. A short summary of how it works is that the vscode extension starts a websocket server which the chrome extension connects to. On execution of a command, the selected text or contents of file(s) are sent to the chrome extension via websocket which manipulates chatgpt's DOM to input in the prompt textarea and send. More details can be found in the respective README's of the extensions. Installation instructions are below

Setup

VSCode Extension

Visual Studio Marketplace

https://marketplace.visualstudio.com/items?itemName=longhairprogrammer.vscode-chatgpt-easy-copy

Manual

Download

Download the latest version of the package (.vsix) file from Releases.

Installation

There are two ways to install the .vsix file:

From Extensions view

  1. Click Views and More Actions (3 dots on top right of the view)
  2. Select Install from VSIX

OR

Run the following command in terminal

code --install-extension vscode-chatgpt-easy-copy-0.0.1.vsix

Chrome Extension

Ideally it should work in any Chromium based browser. It's been tested in Brave and Chrome.

Chrome Web Store

https://chromewebstore.google.com/detail/vscode-chatgpt-easy-copy/npfadfmeapkbafndfhaodpehcibibijg

Manual

  1. Download the latest stable source code zip from Releases and unzip it.
  2. Go to the Extensions page in your browser and enable Developer mode.
  3. Click the Load Unpacked button and select the chrome directory from the unzipped folder.
  4. Activate the extension if not active by default. Thats it!

For more information check chrome's docs on loading unpacked extensions.

Demo

Copy Text

Copy Text Demo

Copy File

Copy File Demo

Privacy Policy

No user data is collected in either of the extensions

vscode-chatgpt-easy-copy's People

Contributors

nikhils98 avatar

Stargazers

 avatar  avatar  avatar Johnny Stenson avatar  avatar Asharib Ahmed avatar

Watchers

 avatar  avatar

Forkers

lionrooter

vscode-chatgpt-easy-copy's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.