Git Product home page Git Product logo

disable-copilot-comment-completions's Introduction

VSCode Extension Marketplace Download

Features

Prevents Github Copilot from providing inline suggestions in comments.

Works by looking at the TextMate Scopes at the Cursor position (Developer > Inspect Scopes and Tokens) and checking if any scope contains the string 'comment'. If so, extension will temporarily disable Copilot's github.copilot.inlineSuggest.enable setting until the cursor moves out of the comment.

The Extension can be toggled on or off using the disable-copilot-comment-completions.toggle Command (Command Palette: Toggle Copilot Comment Completions), and/or set in your settings.json file using the setting key: disable-copilot-comment-completions.active (boolean).

This should work in all files and all languages, as long as the language conforms to standard TextMate symbol/syntax class names. If it doesn't work for you for some reason, make an issue on Github and I can try to fix it for you (or just fork it and fix it yourself, this extension is like 3 lines of code).

demo

Demo also available here if the GIF isn't loading

Requirements

  1. Github Copilot (obviously).
  2. HyperScopes - This extension is used to grab the scopes of wherever you're typing. You need to install it before this extension can work.

Extension Settings

  • disable-copilot-comment-completions.active: enable/disable this extension (defaults to true)

Commands

  • disable-copilot-comment-completions.toggle: Toggles disable-copilot-comment-completions.active state (disables or enables the extension's functionality). You can bind this to a keyboard shortcut if you'd like. You can also disable/enable the extension by clicking the status bar item on the bottom right.

Known Issues

So far, so good (nothing).

Release Notes

1.0.0

Initial release. Fly, little angel, fly..., fly...

disable-copilot-comment-completions's People

Contributors

jamesonknutson avatar

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.