title: Capitalize ${NAME} in File and Code Templates
body: <p><strong>Problem</strong></p>
  
  <p>In <kbd>Preferences -> Editor -> File and Code Templates</kbd> I have a template for React with:</p>
  
  <pre><code>import React from 'react';
  
  class ${NAME} extends React.Component {
  
    render() {
      return (
        &lt;div&gt;
          #[[$END$]]#
        &lt;/div&gt;
      );
    }
  } 
  
  export default ${NAME};
  </code></pre>
  
  <p>Is there a way to capitalize the <code>${NAME}</code>?</p>
  
  <p>We have a convention of naming our files starting with a lowercase but in React components are meant to be capitalized.</p>
  
  <p><strong>Additional Information</strong></p>
  
  <p>I'm aware of the IntelliJ's ability to refactor and that you can use a <kbd>Live Templates</kbd> to accomplish this but I would like to remove this extra step :).</p>
  
  <p>This is possible in <kbd>Live Templates</kbd> where you can define and reference a expression like <code>capitalize(fileNameWithoutExtension())</code> but I couldn't find anywhere to define expressions in <kbd>File and Code Templates</kbd>.</p>