Godot: Multi line comments in GDScript

Created on 23 Aug 2018  路  5Comments  路  Source: godotengine/godot

I wish if there is another way to do multi line comments in GDScript , i know there is a way of selecting a code and pressing CTRL + K to comment the code , and press the buttons again to uncomment
but sometimes it does not uncomment the code , it adds another #
@vnen , you did typed script , please you or someone add another way to comment the code , like this way maybe ? :

*

code
code
code
*#

archived feature proposal gdscript

Most helpful comment

You can fake multiline comments with multiline strings,

"""
code
code
code
"""

But additional work is needed on the parser to make multiline strings behave as true comments when not used as strings.

All 5 comments

You can fake multiline comments with multiline strings,

"""
code
code
code
"""

But additional work is needed on the parser to make multiline strings behave as true comments when not used as strings.

@akien-mga well , that's something i didn't know about it , this works great !

Use the shortcut (Select Area) then ctrl+k as a workaround.
The multi selection was bothering me for quite some time. (Don't expect it to be fixed soon)

I don't think we need this issue anymore.

You can also use ctrl+u to uncomment multiline selection where some lines have no comment.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

blurymind picture blurymind  路  3Comments

rgrams picture rgrams  路  3Comments

mefihl picture mefihl  路  3Comments

SleepProgger picture SleepProgger  路  3Comments

timoschwarzer picture timoschwarzer  路  3Comments