Android Studio 2.3.2.
I want to export Live Templates-->AndroidLog to file.
How I can do this?
Thanks.
IntelliJ IDEA (and Android Studio) stores definitions of custom live templatein automatically generated configuration files <group_name>.xml.
Depending on the operating system you are using, the <group_name>.xml files are stored at the following locations:
Windows: <your_user_home_directory>\.AndroidStudio<version_number>\config\templates
Linux: ~/.AndroidStudio<version>/config/templates
macOS: ~/Library/Preferences/AndroidStudio<version>/templates
Now you can share the templates among your teammates, send the relevant files to them with the instruction to save the files in the templates folder
Or You can sharing live templates through export/import
Open the Settings / Preferences Dialog by pressing Ctrl+Alt+S or by choosing File | Settings for Windows and Linux or IntelliJ IDEA | Preferences for macOS, and click Live Templates under Editor.
On the main menu, choose File | export Settings.
In the Export Settings dialog box that opens, select the Live Template check box and specify the name of the .jar file where the exported settings will be stored. When you click OK, IntelliJ IDEA generates a file with the specified named based on the .xml configuration files stored in the templates folder.
To share the templates among your teammates, pass the generated .jar file to them with the following instructions:
Save the received .jar file on your computer.
Choose File | Import Settings on the main menu and and specify the location of the received .jar file.
In the Select Components to Import dialog box that opens, select the Live Templates check box and click OK.
For any other information, here the official IntelliJ guide
Updated >Android 4.1
IDE configuration directory changes The locations of user
configuration directories have been changed to the following:
Windows Syntax: %APPDATA%\Google<product>
Example: C:\Users\YourUserName\AppData\Roaming\Google\AndroidStudio4.1
macOS Syntax: ~/Library/Application Support/Google/
Example: ~/Library/Application Support/Google/AndroidStudio4.1
Linux Syntax: ~/.config/Google/
Example: ~/.config/Google/AndroidStudio4.1
C:\Users\YourUserName\AppData\Roaming\Google\AndroidStudio4.1\templates
For Mac:
Android 4.1
/Users/{User Name}/Library/Application Support/Google/AndroidStudio4.1/templates
Related
Android Studio allows the user to customize certain features, such as editor settings and coding styles. On Windows boxes, the default folder for these settings appears to be C:\Users\{username}\.AndroidStudio{version}\config. I'm looking for documentation for these files so that we can decide which files should be under version control.
The goals are: 1) to have consistent UI settings for a group of developers; and 2) to have an easy way to configure a new Android Studio install.
So far, the following files look interesting:
...\config\templates\user.xml User-defined code templates
...\config\options\editor.codeinsight.xml Editor settings & code insight
...\config\options\editor.xml Editor settings
...\config\options\cachedDictionary.xml User additions to spelling dictionary.
...\config\codestyles\Default_1_.xml Code formatting
You can go file > Export settings then you get to choose exactly the settings to export and you get a single settings.jar file.
The reverse process is file > Import Settings > choose settings.jar
It seems that the user interface has changed since the last answer.
Now as of Android Studio 4.2 Bata 1 on Windows
You have to go to File -> Manage IDE Settings -> Export Setting to see the same window.
If you can't find the File > Import Settings menu, try accessing File -> Manage IDE Settings -> Export Setting.
There may be differences on the version or operating system.
On Android Studio 3 on Mac, it was configure > Export settings, resulting in a settings.zip file.
Because this is so badly implemented, in case you selected some custom folder and now the export button is disabled: you also need to manually specify a _name_.zip, the Android Studio is incapable of doing it itself, ex: x:\settings.zip
It might be obvious, but it did gave me a small headache this morning.
I found some links to download the .icls files on the link below. However, just by adding the .icls files to the color folder is not doing the job.
Any pointers in right direction is appreciated. (I found only one dark theme here and looking for light themes).
How to change or add theme to Android Studio?
Found the issue: I was using firefox to download from the site and the site below was giving me a .zip file instead of .jar file. Used Chrome and got the .jar file. [Editor's note: the site previously linked here has changed owners and been replaced with spam, and has been edited out]
Steps to follow:
File > Import Settings. Select the .jar file.
Close and start Android studio (auto restart didn't work)
Settings > Editor > Colors and Fonts select your theme and you are good to go.
I created a new file (with .frag extension) within Android Studio, and a window "Register New File Type Association" popped up. I wasn't paying attention and I selected "Open matching files in associated application" which now makes it so any time I try to open a *.frag file it opens in Gedit (which I had open at the time of the file creation). I checked file types in Settings but I didn't see an option to change the association definition. I want my *.frag files to open in Android Studio.
register-new-file-type-association-dialog
I just made the same mistake.
Go to Setting
write 'file types' on the search box
select the 'File types' under 'Editor'
find the one you assigned and delete it.
I ended up setting Android Studio back to default settings using this link: Reset Android Studio settings to default setting on linux
I want to add the source-code of a tutorial into an existing project, and I want the file to be copied to the project folder from the temporary file on the desktop I downloaded it to. Context clicking on the "Source Files" Folder in the Solution Explorer leads me the Add->Existing Item... menu, and I can then add the source file. However, it is NOT copied into the project folder, but stays in its original location. The project just knows about it, displays it in the Solution Explorer, and considers it part of the project.
This help page on MSDN tells me that in Visual Studio 2010, default behaviour used to consist in copying the file into the project folder, and that one could choose to Add a link instead of physically importing the file into the project directory by choosing "Add Link". However, now I always only get a link, and real physical import into the project folder seems impossible.
I could go through the File Explorer to physically import, but the Solution Explorer doesn't update the new files on the fly, and I would like to do this from within VS.
Is there a way? Is this a bug in VS 2012?
Copy in the files using Explorer, then in the solution explorer tick the Show All files option in the button bar of the solution explorer (you might need to select a Project first).
You can now right-click any files not part of the projects and choose Include in Project.
Or use the Add Existing File option.
The reason files are not added automatically to your solution when pasted into the folder using Explorer is because you might not want to have them added.
A neat little trick is to use the "Open In explorer" option:
(though it might be added by the Productivity Power Tools).
Plus, you can Drag&Drop files directly from explorer to the Visual Studio (when they're both running in the same elevation level if you have User Account Control enabled). To fix the UAC issues, you can either run Explorer as administrator too or install the VSCommands extension.
And you can Copy&Paste a file or set of files into the solution explorer by right-clicking a project or project folder and picking Paste on the context menu.
I am working on window setup and deployment project in .Net VS 2010.I have created a setup file.When we install setup build in .net a step comes where user is asked to select installation folder i.e. Installation Folder step.This step has default banner text "Select Installation Folder".Also browse text box has default header text "Folder".
Is it possible to change these default text?If so please suggest.
Please note that I have to change only these text mentioned above not the default path or location.
Abhinav
If you rightclick your installation project in VS2010 under the option "View" you can select the user interface. A new tab wil open with al the UI windows on it, you can change the text there.