Skip to content

Ctrl+/ shortcut doesn't work #2622

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
rtek1000 opened this issue Feb 5, 2025 · 6 comments
Open
3 tasks done

Ctrl+/ shortcut doesn't work #2622

rtek1000 opened this issue Feb 5, 2025 · 6 comments
Labels
type: imperfection Perceived defect in any part of project

Comments

@rtek1000
Copy link

rtek1000 commented Feb 5, 2025

Describe the problem

Hello,

I was using IDE 2.3.4 on Linux and everything was fine, but when I try to use it on Windows 11, I can't get the CTRL+"/" shortcut to work to comment out lines. It's CTRL+";".

Even in the advanced menu it was not possible to change to CTRL+"/". It's CTRL+";".

Apparently it has happened to other people before:
https://forum.arduino.cc/t/ide-editor-no-longer-supports-block-comment/698546

It shows the default as CTRL+";", but when I click edit, it says CTRL+"/", very confusing.

Image

How do I leave CTRL+"/"?

To reproduce

Expected behavior

Arduino IDE version

2.3.4

Operating system

Windows

Operating system version

11

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@rtek1000 rtek1000 added the type: imperfection Perceived defect in any part of project label Feb 5, 2025
@per1234 per1234 changed the title The new IDE 2.0 editor no longer supports the CTL+"/" macro to comment out code block entries/exits? Ctrl+/ shortcut doesn't work Feb 5, 2025
@daxliniere
Copy link

daxliniere commented Feb 6, 2025

It sounds similar to #2621

Did you try both forward slash keys on your keyboard?

@rtek1000
Copy link
Author

rtek1000 commented Feb 6, 2025

What are the two keys?

The first key "/" works on Linux, but not on Windows.

The second one is the key next to the number 0, which needs to be pressed with the FN key?

@daxliniere
Copy link

which needs to be pressed with the FN key?

Depends heavily on your keyboard layout and the default function of your keyboard keys. Easiest way to know is to click in the text editor area of the IDE ('the main window') and make the key type a forward slash. Then, whatever key combo got you there, try that in the shortcut editor.

@daxliniere

This comment has been minimized.

@rtek1000
Copy link
Author

rtek1000 commented Feb 9, 2025

If I use Windows 7 x64 in a virtual machine, installed on the Linux host, the problem also occurs. It seems that the problem is on the notebook. Although IDE 1.8.19 works normally, both on Linux and Windows 11.

It's difficult to understand that in a text editor the keys work correctly, but not in shortcuts. And if I try to leave CTRL+"\", then it appears as CTRL+"]" in the settings, and none of these combinations work (CTRL+"/" or "CTRL+"\"), because the configuration accepted it as CTRL+"]".

Image

Image

Image

@daxliniere

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants