6 Comments // Reading Time: 2 min.
In the TYPO3 agency environment, our TypoScript plugin has met with great approval. You can use the plugin with a variety of Jetbrains IDEs. However, most will use it with PhpStorm or WebStorm.
The two development environments of Jetbrains support TypeScript by default, which uses the file extension .ts in addition to .ats. This standard configuration causes your TypoScript files to be recognized as TypeScript and not as TypoScript. Therefore all features of the Typoscript plugin cannot be used for .ts files.
But a standard configuration can of course also be changed. In this short blog amount I would like to show you how you can do this. If you also use TypeScript in your project, just use a different file extension for your Typoscript files or .ats for TypeScript.
In the first step we remove the TypeScript support for .ts files. To do this we go to the settings and open the menu Editor -> File Types in the dialog.
You should now see a configuration similar to the one shown in Figure 1. All you have to do is select the *.ts file pattern and click on the "-" icon. We now want to use the same file pattern for the TypoScript type and therefore have to add this configuration. Just select TypoScript instead of TypeScript and press the "+" button under the existing pattern. Now simply enter the pattern "*.ts" and confirm the dialog with OK. Your configuration should look like this:
It's almost done. Just confirm the new settings with "Apply", close the settings dialog and you can edit .ts files with all features of our TypoScript plugin.
We are a digital agency specialized in the development of digital products. Our head office is in Munich/Unterföhring - but we work remotely worldwide. Our specialities are websites and portals with TYPO3, e-commerce projects with shopware and iOS and Android apps. In addition, we are also familiar with many other topics in these areas. Contact us in your preferred way: Whether by contact form, e-mail, telephone or in a Whatsapp message.