16

I've activated github copilot and it works fine but, while typing it only shows one line of suggestion. After all of my tryings, It still shows one line of suggestion. But I want to see multi-line suggestions.

One line suggestion

Even the all solutions tab show one line of complete solutions.

enter image description here

Here is my user settings.json

{
    "editor.formatOnSave": true,
    "prettier.singleQuote": true,
    "prettier.tabWidth": 4,
    "prettier.useTabs": true,
    "[javascript]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "diffEditor.codeLens": true,
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "files.exclude": {
        "**/.DS_Store": false,
        "**/.hg": false,
        "**/.svn": false,
        "**/CVS": false,
        "node_modules": true
    },
    "thunder-client.codeSnippetLanguage": "js-axios",
    "editor.fontSize": 13,
    "aws.profile": "profile:kahramanlar",
    "editor.accessibilitySupport": "off",
    "window.zoomLevel": -1,
    "github.copilot.inlineSuggest.enable": true,
    "editor.inlineSuggest.enabled": true,
}
Samil Kahraman
  • 432
  • 6
  • 13
  • Have you tried to press tab, and then to wait a couple of seconds? A new multiline suggestion should appear for the following lines. (I'm having the same "problem" with C++) – FLAK-ZOSO Mar 29 '22 at 16:01
  • Seems to be a known problem: https://github.com/github/feedback/discussions/13303 – patchie May 09 '22 at 12:00

2 Answers2

6

This bug currently affects all versions of vs code and is known to the developers. Since yesterday they officially announced that they are working on the issue:

Hi folks, this is GH Copilot team. We hear your feedback and are actively working to address it. Dave and I will keep you folks updated on the progress. Thanks again!

David Fischer
  • 155
  • 1
  • 6
1

For VSCode in Mac OS changing the n.multiline||(h.stop=["\n"] to n.multiline||(h.stop=["\n\n\n"] in /dist/extention.js file fix the problem for me.

Or using just this single-line code from here:

sed -i 's/\["\\n"\]/["\\n\\n\\n"]/' $(ls ~/.vscode/extensions/github.copilot-*/dist/extension.js)
shahryar ab
  • 71
  • 1
  • 2
  • 7