[Github-comments] [geany/geany] Add support for automatic continuation of single-line comments (#2084)

Daniel Plakhotich notifications at xxxxx
Wed Feb 6 20:27:43 UTC 2019


It would be nice to have automatic continuation of single-line comments, as long as such a comment is not inline (that is, there is no code before the comment).

For example, pressing Return after this comment (C++, `|` is caret):
```
// First line|
```

Will result in:
```
// First line
// |
```
One of the reasons why it's useful is writing Doxygen documentation. Along with C-style multiline comments, Doxygen supports C++-style comments in the following two forms:
```
///
/// Variant 1
///

//!
//! Variant 2
//!
```
Currently, writing such comments is extremely tedious, not only because you have to type `///` or `//!` every time, but also because the indentation within the comment is lost. Detecting such special cases
 (`///` and `//!`) is easy to implement as long as basic form (`//`) is supported.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2084
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20190206/3979b7f9/attachment.html>


More information about the Github-comments mailing list