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, which is specialized in the development of digital products. Our core topics are websites and portals with TYPO3, eCommerce with Shopware and Android and iOS-Apps. In addition, we deal with many other topics in the field of web development. Feel free to contact us with your concerns!