# C/C++ Comment Continuation

**URL:** <https://discuss.kakoune.com/t/c-c-comment-continuation/2642>\
**Category:** Help\
**Tags:** format, language\
**Created:** [January 28, 2025, 5:40pm UTC](https://discuss.kakoune.com/t/c-c-comment-continuation/2642 "2025-01-28T17:40:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dark\_Arc](https://discuss.kakoune.com/letter_avatar_proxy/v4/letter/d/53a042/32.png) [@Dark\_Arc](https://discuss.kakoune.com/u/Dark_Arc)\
**Post date:** [January 28, 2025, 5:40pm UTC](https://discuss.kakoune.com/t/c-c-comment-continuation/2642/1 "2025-01-28T17:40:22Z")

</div>

When writing C or C++ code with the `/* */` comment style, when you start a new line kakoune automatically inserts spaces and a `*`.

Effectively, this comment style:

```auto
/*
 * <comment>

```

I work in a code base where the style is:

```auto
/*
<comment>
*/

```

So, every time I go to make a comment block, I have to undo the work kakoune did “for me.”

This seems to be related to [kakoune/rc/filetype/c-family.kak at d92496449d0c9655253ad16363685bb8446dc582 · mawww/kakoune · GitHub](https://github.com/mawww/kakoune/blob/d92496449d0c9655253ad16363685bb8446dc582/rc/filetype/c-family.kak#L148-L159) … but as I’m relatively new, is there a way to replace this logic or would it be reasonable to modify kakoune to add a boolean option that could be set for whether or not this continuation is injected?

---

<div class="post-metadata">

**Author:** ![krobelus](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/krobelus/32/616_2.png) [@krobelus](https://discuss.kakoune.com/u/krobelus)\
**Post date:** [January 29, 2025, 5:21pm UTC](https://discuss.kakoune.com/t/c-c-comment-continuation/2642/2 "2025-01-29T17:21:56Z")

</div>

you can do `set-option global disabled_hooks (c|cpp)-insert` (or `.*-insert` to apply it to all filetypes).  
Alternatively, `remove-hooks` can be used to the same effect (but that’s harder to dynamically toggle)
