Skip to content
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

Editor and Auto Format have conflicting multi-line comment styles #3941

Open
per1234 opened this issue Oct 9, 2015 · 4 comments
Open

Editor and Auto Format have conflicting multi-line comment styles #3941

per1234 opened this issue Oct 9, 2015 · 4 comments
Labels
Component: IDE user interface The Arduino IDE's user interface Type: Bug Upstream notified Related to a software component maintained by someone else. They have been notified of it

Comments

@per1234
Copy link
Collaborator

per1234 commented Oct 9, 2015

Using Arduino IDE 1.6.6 2015/10/08 05:43

  • type: /*
  • press enter key

editor produces the following:

/*
 * 
 */
  • Tools>Auto Format

auto format changes it to:

/*

*/
@Chris--A
Copy link
Contributor

Chris--A commented Oct 9, 2015

Just my 2 cents.

I do not use auto format, however the auto addition of * is quite annoying. I can understand auto bracket matching but this is a feature that doesn't really add to ease of use.

It'd be good to change the editor to reflect the auto-format style, rather than the other way around.

@per1234
Copy link
Collaborator Author

per1234 commented Oct 9, 2015

auto addition of * is quite annoying.

100% agree.

I can understand auto bracket matching

I can't stand it. This feature may be useful to some but I really wish it was optional. My productivity using the Arduino IDE has dropped significantly since the new editor was added.

It'd be good to change the editor to reflect the auto-format style, rather than the other way around.

Agree, I'd probably have to switch to using an external editor if Auto Format started adding * to every line of a multi-line comment. However, I think it more likely the fix will be for Auto Format to just not remove the * from each line(by removing remove-comment-prefix from formatter.conf) though I'd prefer the editor's behavior to be changed instead.

@Chris--A
Copy link
Contributor

Chris--A commented Oct 9, 2015

I can't stand it. This feature may be useful to some but I really wish it was optional. My productivity using the Arduino IDE has dropped significantly since the new editor was added.

I'm with you on this, I hate it, however it seems to be what they wan't and I can see where it may possibly save a newbie. But still, it doesn't really do its job properly, anything other than creating a nested scope or a function still requires intervention by the user (classes, namespaces): #3390

@cmaglie cmaglie added the Component: IDE user interface The Arduino IDE's user interface label Oct 20, 2015
@ffissore ffissore added the Upstream notified Related to a software component maintained by someone else. They have been notified of it label Oct 28, 2015
@ffissore
Copy link
Contributor

See bobbylight/RSyntaxTextArea#151

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE user interface The Arduino IDE's user interface Type: Bug Upstream notified Related to a software component maintained by someone else. They have been notified of it
Projects
None yet
Development

No branches or pull requests

4 participants