How do you toggle template interpolation in Helm chart templates?
已回答
When you first open a k8s template .yaml file inside a Helm chart, IJ shows the result of the interpolated value for every template expression in it. If you double-click the value, it shows you the template source expression (`{{- .Values.foo.barr -}}`, etc.).
What is the keystroke to toggle all interpolations on & off in the current editor?
请先登录再写评论。
You can expand a particular folded element by pressing Ctrl (Cmd) - '+'. If you want to disable auto-folding completely press Alt-Enter on a folded element and select "Open code folding options" in the popup menu. Or alternatively, go to Settings | Editor | General | Code folding. Find the "Kubernetes" section in the popup dialog and uncheck appropriate options. Please note that It's not possible to disable auto-folding only for the current file.
Hmmm. "Code folding" seems like strange terminology for this feature. It's actually something like "template interpolation preview". In any case, it seems like there ought to be a keystroke that toggles all interpolations on & off for the current file. I'll add an issue.
https://youtrack.jetbrains.com/issue/WEB-44780