Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Multi line comment editing
Alpha:
Attached patch modifies the action on press enter while editing a multi line comment. If anyone has time to test, I would be interested if this behaviour feels useful, or just annoying.
oBFusCATed:
Can you explain what it is supposed to change?
Post an example code?
I see no difference in behaviour.
Alpha:
--- Code: (cpp) --- /**
* This is a comment.
* Press enter here to see change:
--- End code ---
--- Code: (cpp) --- // This is a comment.
// Press enter here to see change:
--- End code ---
Without this patch, the next line will copy the indentation only from the previous line. With this patch, the leading * or // should also be copied.
Also:
--- Code: (cpp) --- /**
* I am doxygen.
*
* @param foo
* @param pressEnterHere
--- End code ---
The pattern will copy " * @param ".
oBFusCATed:
Are you sure you've tested it a lot and thoroughly? For me it works at random.
It is totally broken for non-doxygen comments (it copies random string either '/' or some random text).
Also I'd consider this feature annoying, because it forces me to format comments in certain way that might not be compliant with the style guide I'm using at the moment.
Alpha:
--- Quote from: oBFusCATed on April 26, 2015, 01:07:37 pm ---Are you sure you've tested it a lot and thoroughly? For me it works at random.
--- End quote ---
Had it applied locally for a while, though it is my own code, so of course I am biased.
--- Quote from: oBFusCATed on April 26, 2015, 01:07:37 pm ---Also I'd consider this feature annoying, because it forces me to format comments in certain way that might not be compliant with the style guide I'm using at the moment.
--- End quote ---
Okay, thanks. I was more looking for opinions on how it worked. I will put this down on my checklist of things to improve planning of functionality for the future...
Navigation
[0] Message Index
[#] Next page
Go to full version