Questions tagged [file-templates]

20 questions
22
votes
4 answers

Where are the file templates in Android Studio 4.1 located?

I have trouble importing my custom file templates into Android Studio 4.1 Canary 5. In prior versions of Android Studio (up to 4.0) I used to copy my templates into /Contents/plugins/android/lib/templates (I am using…
Rafa
  • 383
  • 3
  • 7
5
votes
1 answer

PyCharm: How to use Live Template in File Template

This question follows on from one I asked last week - How to apply more than one function to a passed in live template variable? Now that I have a live template function called classNameFromFileName, I am unable to use it in a file template. I have…
Mike
  • 6,149
  • 5
  • 34
  • 45
4
votes
1 answer

Android Studio Group File Template, Custom Path For Child File

Am trying to create a Group File Template which has to child files FragmentKotlinClass.kt ViewModel.kt fragmetn_layout.mxl But the problem is that all three files created in the same directory The question is How to specify the directory name…
Hussien Fahmy
  • 1,119
  • 6
  • 24
3
votes
1 answer

How can I place my custom file templates to the top?

Using Xcode 9. I have created several custom file templates. When creating new files, the dialog box shows my custom templates at the bottom. How can I get them to show at to top?
Running Turtle
  • 12,360
  • 20
  • 55
  • 73
1
vote
0 answers

How to target the absolute path when using file template in Android Studio Arctic Fox?

version: Arctic Fox 2020.3.1 patch 3. I want to create a Fragment file and let Android Studio generate the layout file for me using the file template feature. My problem is when create the fragment, the child template always generate the layout file…
1
vote
1 answer

IntelliJ IDEA File Templates - Customize directory/package for Multiple Files Template

I'm using IntelliJ IDEA to develop a Java app. Let's suppose I have a Multiple File Template that creates a Model Entity, Service and a Controller. When I use that template, 3 files are created in the same location. Assume that the Entity name is…
sebasira
  • 1,739
  • 1
  • 22
  • 41
1
vote
1 answer

Clion unable to parse template

I created the following file template in Clion, but when I tried to create a file it said "Unable to parse template". What could be wrong? #include using namespace std; #define endl "\n" int main(){ …
Joseph Kirtman
  • 349
  • 2
  • 10
1
vote
1 answer

CLion new C++ Class file template

CLion has file template to generate C++ Class, which generates source file and header. In my project I have handler classes that have same code part, and i want to generate them by file templates. And templates that i created can't do this: Set…
R.Mazgutov
  • 181
  • 9
1
vote
1 answer

How to Create a "File Template", for java code, in a new NetBeans Module?

I've taken the well-known Netbeans tutorial "NetBeans File Template Module Tutorial" which shows how to create an HTML template, shareable via a module. It worked fine, but when I attempted to create a Java template using a java file instead of an…
1
vote
1 answer

How to change the default C++ template file?

I'm using Visual Studio 2019, and whenever I create a new C++ project it gives me a default file with the following code: // Template Test.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include…
Yale
  • 13
  • 1
  • 3
1
vote
1 answer

How do I activate syntax highlighting of an Xcode file template?

I’m creating a file template for a file with an extension that Xcode doesn’t recognise. Xcode doesn’t apply syntax highlighting to the file but I’d like it to. I would like Xcode to recognise the file as com.netscape.javascript-source even though…
Indiana Kernick
  • 5,041
  • 2
  • 20
  • 50
0
votes
0 answers

Creating File Template in Intellij with importing files relativly

I'm trying to build a file template for a react component for my team at work. I have built the file template according to what Intellij offers, but I get stuck in one thing: How can I import files into my file template, but without knowing where I…
0
votes
0 answers

How to set absolute path in file templates?

I want to create a file in a concrete package, no matter where the user clicks in the file tree. E.g. I want to always create a file inside relations package. Here I clicked on the entity package, but I expect to get the resulting file in relations…
llesha
  • 423
  • 1
  • 15
0
votes
1 answer

Can't find File Templates with Android Studio Chipmunk

In previous versions of Android Studio I always used it to get file templates to cut down the time for writing code. But now with the latest version (Chipmunk 2021.2.1 Patch 2) I can't find the file templates?
Abd Nezar
  • 341
  • 4
  • 8
0
votes
0 answers

IntelliJ IDEA File Templates - Global Custom Variables for Multiple Files Templates

I'm using IntelliJ IDEA to develop a Java app. I know that I can introduce a custom variable in a File template by adding, for example ${myVar} and when creating that template, then I will be prompt to input that variable. Now I'm creating a…
sebasira
  • 1,739
  • 1
  • 22
  • 41
1
2