Using Eclipse hotkeys in Espressif IDE

justinmreina
Posts: 71
Joined: Tue Jul 18, 2017 10:39 pm
Location: Snohomish, WAt
Contact:

Using Eclipse hotkeys in Espressif IDE

Postby justinmreina » Fri Mar 14, 2025 5:19 pm

Hi, in Eclipse I have loved the traditional hotkeys and I use them a lot. Here are two of my favorites -

Hotkey Examples:
  • Ctrl+'/' to toggle a comment in the C/C++ editor
  • F11 to launch a Debug session
I see these options setup as expected in Preferences-> General -> Keys. I also, ALMOST, can get Toggle Comments working -

Toggle Comments:
  • Ctrl + '/' (doesn't work)
  • Ctrl + '7' (works!)
  • Ctrl + Shift + 'C' (works!)
Open Questions:
  • How can we get Ctrl + '/' here to work for toggling comments?
  • How can we get F11 to launch a Debug session?
Are these hotkeys possible with Espressif IDE?

ahsrabrifat
Posts: 201
Joined: Sat Jan 18, 2025 2:31 pm

Re: Using Eclipse hotkeys in Espressif IDE

Postby ahsrabrifat » Mon Mar 17, 2025 11:54 am

Eclipse sometimes has issues with different keyboard layouts.If you’re using a non-US keyboard, Eclipse might not recognize / properly.
Try switching your keyboard layout to English (US) and test again.

ohmycat
Posts: 1
Joined: Fri May 09, 2025 10:35 am

Re: Using Eclipse hotkeys in Espressif IDE

Postby ohmycat » Fri May 09, 2025 10:39 am

1. Go Window -> Preferences -> General -> Keys
2. type Comment in the search bar.
3. Find Toggle Line Comment, Ctrl+7
4. Copy that Command
5. In the new command add Ctrl+/ and press Apply
6. If you have numpad - copy again and add Ctrl+Numpad_Divide shortcut and press Apply
...
7.Profit

justinmreina
Posts: 71
Joined: Tue Jul 18, 2017 10:39 pm
Location: Snohomish, WAt
Contact:

Re: Using Eclipse hotkeys in Espressif IDE

Postby justinmreina » Sun May 18, 2025 2:18 pm

Excellent @ohmycat, I had no idea! This was a simple solution and I appreciate the detail you share 😎

Here was the fix I used, see attached -
Attachments
Example.png
Example 'Toggle Comments' setting
Example.png (48.88 KiB) Viewed 130 times

Who is online

Users browsing this forum: PerplexityBot, PetalBot, Semrush [Bot] and 1 guest