do I have to do # before each line to use it as a "comment"?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By felaix

do I have to do # before each line to use it as a “comment”?

example:

# hey
# i want
# to use
# that as
# a comment

or is there an easier way?

in html you can do, for example:

<!-- this is
a multi-line
comment -->

Godot version newest for linux

Please state your exact Godot version in the future, as “latest” is a moving target :slight_smile:

Calinou | 2021-01-09 16:15

okay. i’m sorry

felaix | 2021-01-09 18:01

:bust_in_silhouette: Reply From: Calinou

You can use multi-line strings as multi-line “comments”, but keep in mind they will be evaluated as standalone expressions, lowering performance.

"""
like this
"""

Thus, I’d still recommend using # to comment lines. You can press Ctrl + K after selecting several lines to toggle their comment status.