Toggle comments in .tf files using IDE

:hugs: Please help fill in this template with all the details to help others help you more efficiently. Use formatting blocks for code, config, logs and ensure to remove sensitive data.

Problem to solve

My organization recently upgraded to GitLab Enterprise Edition [v16.3.7-ee] so now we do not have access to the legacy IDE. My team works heavily with .tf files but the toggle comment shortcut does not work in the new IDE. We are able to comment out seemingly any other file type, but .tf just doesn’t do anything.

Steps to reproduce

Create a .tf file, open it in the new VSCode style IDE, type a line, try to comment it out with [Ctrl+/].


Provide screenshots from the GitLab UI showing relevant configuration, if applicable.
On self-managed instances, add the relevant configuration settings or changes.


Please select whether options apply, and add the version information.

GitLab Enterprise Edition [v16.3.7-ee]

Helpful resources

  1. Before opening a new topic, make sure to search for keywords in the forum search
  2. Check the GitLab project for existing issues. If you encounter a bug, please create a bug report issue.
  3. Troubleshooting docs: Self-managed GitLab instances.

Thanks for taking the time to be thorough in your request, it really helps! :blush: