Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Bug] IDE adds additional characters when commenting out the code #10935

Closed
@rtek1000

Description

Hi,

I'm having problems with the Arduino IDE:

  • When I open the IDE through the start menu, the IDE works normally,
  • But after opening through the sketch (* .ino file), when using the shortcut "Ctrl+/", the IDE adds an additional bar.

The additional bar is inserted wherever the cursor is, if a block is selected to be commented, then the additional bar replaces the entire block.

Examples of the problem:

Initial code:

void setup() {
 // put your setup code here, to run once:
 
 }
 
 void loop() {
 // put your main code here, to run repeatedly:
 
 }

Commenting with cursor before "void":

 ///void setup() {
 // put your setup code here, to run once:
 }
 
 void loop() {
 // put your main code here, to run repeatedly:
 
 }

Commenting with cursor before "setup":

 //void /setup() {
 // put your setup code here, to run once:
 }
 
 void loop() {
 // put your main code here, to run repeatedly:
 
 }

Commenting the "setup" routine block:

 ///
 
 void loop() {
 // put your main code here, to run repeatedly:
 
 }

O.S.: Linux Xubuntu:

$cat /etc/os-release

NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.1 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /