![]() ![]() Used to format comments on the fly (see the flag documentation for moreĭetailed explanation). Kinds unrelated to comments, the F_INCLUDE_COMMENTS flag can be Since 3.4 for K_COMPILATION_UNIT and since 3.6 for other Parameters: kind - Use to specify the kind of the code snippet to format. It would be up to the caller to get rid of preceding If the offset position is matching a whitespace, the result can include ![]() ![]() It returns null if the given string cannot be formatted. Since: 3.4 See Also:Īnd returns a text edit that correspond to the difference between the given The K_COMPILATION_UNIT kind to be broken while formatting. This will prevent all existing clients (e.g. Have decided to add a specific flag to fix this formatter incorrect behavior. Note: Although we're convinced that the formatter shouldĪlways include the comments while processing a * while processing a compilation unit only if the constant flag * This is just a simple example to show that comments will be formatted Will produce the following output instead: * This is just a simple example to show that comments will be formatted while processing a compilation unit only if the constant flag F_INCLUDE_COMMENT flag is set.Īdding this flavor to the kind given while formatting the same source Of the following code snippet using K_COMPILATION_UNIT: Note also that it has an effect only when one or several format commentsįormat(int, String, int, int, int, String) orįormat(int, String, IRegion, int, String) methodsįor example, with the Eclipse default formatter options, the formatting This flag can be combined with the following kinds: Flag used to include the comments during the formatting of the code ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |