Search code examples
visual-studio-codeautocompletegithub-copilot

(Possibly Copilot Related) Unexpected "<ctrl63>" Issue in Visual Studio Code Autocompletion - Need Assistance


I'm facing a perplexing issue in Visual Studio Code where the string "<ctrl63>" is unexpectedly appearing in my code when using autocompletion. I'm pretty sure it's related to Copilot.

Here's a couple of random examples of how it just throws in the <ctrl63>:

  ```
 app.get (""), (req, res) => {
 res.send("This is the home page.");<ctrl63> 
     }
  ```

    '''
    const express = require('express');
    const app = express();
    const port = 3000;

    app.get('/', (req, res) => {
        res.send('Hello World!');
    });

    app.listen(port, () => {
        console.log(`Example app listening at http://localhost:${port}`);
    });<ctrl63> This code will create a simple web server that listens on port 3000. When a                     request is made to the root URL ('/'), the server will send the response 'Hello World!'.
 '''

Checking Keyboard Shortcuts: I've reviewed the keyboard shortcuts in Visual Studio Code to ensure that "<ctrl63>" is not inadvertently mapped to any action.

Disabling Extensions: I've disabled all extensions in Visual Studio Code, including Copilot, to rule out any extension-related conflicts. No auto complete, no issues when Copilot is disabled.

Reviewing Code Editor Settings: I've reviewed my Visual Studio Code settings and configurations to see if there's anything that might be causing this issue, but haven't found any relevant settings.


Solution

  • Apparently this happens when you combine the aaron-bond.better-comments extension with an extension that provides inline completions such as the GitHub Copilot extension. I don't know why this happens. As a workaround, you could consider disabling one of those extensions- either better comments, or the inline completions extension.