<p>Can we apply/delete kubernetes YAML files in IntelliJ IDEA/Visual Studio Code by right clicking on the YAML file and then choosing apply/delete/..?</p>

user674669
<p>The <a href="https://www.jetbrains.com/help/idea/settings-tools-external-tools.html" rel="nofollow noreferrer">External Tools</a> feature will do what you're asking; you can create an "external tool" named <code>kubectl-apply</code> with any of the variables they support, and then invoke it via any number of built-in mechanisms</p>

<p><a href="https://i.stack.imgur.com/v1SXg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/v1SXg.png" alt="the IntelliJ External Tools configuration dialog"></a></p>
