facebook

Strange behaviour Shortcut Ctrl+S & Ctrl+Shift+S

  1. Copilot4Eclipse – GitHub Copilot on Eclipse
  2.  > 
  3. General Discussion
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #701944 Reply

    Berndo
    Participant

    I am programming in Java (JDK-21) using Eclipse (2023-12 (4.30.0) Build id: 20231201-2043, German Keyboard-Layout) and the Copilot4Eclipse plugin (1.2.1. When I use the shortcut Ctrl+S or Ctrl+Shift+S, Copilot4Eclipse modifies existing code. However, when I click on the save icon to save, everything remains unchanged. Any suggestions?

    I have already checked the shortcuts and could not find any duplicate assignments.

    Screenshot 2024-07-30 151210.png: Befor ctrl+s
    Screenshot 2024-07-30 151233.png: After ctrl+s

    Thanks a lot

    Attachments:
    You must be logged in to view attached files.
    #701951 Reply

    wayne
    Moderator

    Thanks for the screenshots.

    In the screenshot where ‘// Database Credentials’ is displayed, I am assuming this line of code is generated by Copilot4Eclipse and not committed to the editor’s document/file. If yes, this is a code suggestion generated by Copilot4Eclipse. Code suggestions are displayed in a light gray text color known as ghost-text and is not actually part of your document until you accept/commit it. Also know that code suggestions are ephemeral and will disappear when you move your cursor. If you hit the TAB key when a code suggestion is being displayed, the suggestion will be insert into the editor as proper text at the current cursor location. After that it can be saved.

    See Brian’s video at the 35 second mark, https://www.youtube.com/watch?v=q2dhnulEYFk&t=2s

    If you are already committing code suggestions into your editor’s document, then there could be an error. If that is the case please check the Eclipse Error Log view for any interesting log messages that may appear when saving your document. Share any details here and we can work with that info.

    Wayne
    Copilot4Eclipse Team

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Strange behaviour Shortcut Ctrl+S & Ctrl+Shift+S

You must be logged in to post in the forum log in