You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ctrl+K is a shortcut normally used to comment out the current line. It works in the shader editor, but for some reason, it doesn't if your shader has the .gdshaderinc extension (aka it's a shader include). Shader Includes are the same language, we should be able to use that feature.
Steps to reproduce
Create a .gdshaderinc file. Write some code in it. Observe you can't use Ctrl+K to comment out lines.
Fixesgodotengine#78205
The handling of comments and indentation in the shader editor
wasn't considering shader include files.
(cherry picked from commit 71b8a9d)
Godot version
Godot 4.0.3
System information
Windows 10 64 bits NVIDIA GeForce GTX 1060
Issue description
Ctrl+K is a shortcut normally used to comment out the current line. It works in the shader editor, but for some reason, it doesn't if your shader has the
.gdshaderinc
extension (aka it's a shader include). Shader Includes are the same language, we should be able to use that feature.Steps to reproduce
Create a
.gdshaderinc
file. Write some code in it. Observe you can't use Ctrl+K to comment out lines.Minimal reproduction project
CommentLinesShaderInc.zip
The text was updated successfully, but these errors were encountered: