Is there a way to auto format pasted text in comments.
Answered
I get surprised on how well Idea formats text when I paste it... but one thing that keeps bugging me when I use a block comment pasting when I'm using an internal API I like to add the documentation from the manual but the copy pasting always end up like this:
/**
* Required: Cond
Type: String
Max Allowed: 1
Length: 1..34
The packages tracking
number.
- For package when the
Tracking Number element
*/
@JsonProperty(value = "TrackingNumber")
protected String trackingNumber;
When I would expect:
/**
* Required: Cond
* Type: String
* Max Allowed: 1
* Length: 1..34
* The packages tracking
* number.
* - For package when the
* Tracking Number element
*/
@JsonProperty(value = "TrackingNumber")
protected String trackingNumber;
Is there a way to fix this? Or if it would have to be a plugin? If it has to be a plugin, I'm semi competent with plugin development. What part of the system would I target.
Please sign in to leave a comment.
JavaDoc formatting should work by default:
Could you please check if it works when the lines you are pasting are all prefixed with the asterisk?