Documentation

​
​

Development

User Acquisition

Monetization

Industry

Unity Gaming Services CLI

v1.4

Legacy
​

GitHub Repository

Unity Gaming Services CLI

v1.4

Legacy
​

​
​
Unity Gaming Services CLI
  • Overview
Get started
  • Install the CLI
  • Set up a Common Configuration
  • Get Authenticated
  • Use Your First Command
Base commands
  • Configuration
  • Deploy
  • Environment
  • Fetch
  • Login
  • Logout
  • Status
Deployment definition
  • What is a Deployment Definition
  • Commands for Deployment Definition
  • Excludes
  • Troubleshooting Deployment Definition
Samples
  • CI/CD Pipeline Usage
  • Deploy Samples
  • File Type Associations
  • Redirecting Command Result to File
Troubleshooting
  • Project Roles
  • Unauthorized (Error 403)
CLI Services Documentation
  • Access
  • Cloud Code
  • Cloud Content Delivery
  • Cloud Save
  • Economy
  • Game Server Hosting
  • Leaderboards
  • Lobby
  • Player
  • Remote Config
  • Scheduler
  • Triggers
  1. Overview

File Type Associations

Set up IDE file type associations to enable syntax highlighting and autocompletion for CLI file types.
Read time 3 minutes
Last updated 3 months ago

When a file is opened in an IDE, the IDE chooses the language service to use according to the file's type. When a file's type doesn't match any association in the IDE, no syntax highlighting or code analysis is provided.

Benefits of file type associations

By setting file type associations, IDEs become able to offer syntax highlighting and code analysis for a given file type.
Additionally, for some CLI file types, schemas are provided. Those offer autocompletion.
For example, Economy has multiple file types (.ecc, .ecr, .ecv, .eci), all of which are populated with JSON content. By associating the Economy file types
.ecc
,
.ecr
,
.ecv
and
.eci
to
JSON
, autocompletion will be provided for each expected JSON key (given that the file is being modified in the IDE where the associations were declared).

Setting up file type associations

Rider

  1. Go to Settings/Preferences > Editor > File Types
  2. Select a language service (this is the language service that will provide syntax highlighting and code analysis for the file type, see examples)
  3. Enter a file name pattern (ex: inputting *.ecc will make it so any file that has the
    .ecc
    extension will adhere to the language service provided, see examples)
  4. Save
If the above does not work, visit Rider's Documentation on File Type Associations.
Verify that the file type association was successful by opening the file in your IDE and testing that autocomplete and syntax highlighting are working.

Visual Studio Code

  1. Go to Settings > Text Editor > Files
  2. Under "associations", click "Add Item"
  3. As key, enter a file name pattern (ex: inputting *.ecc will make it so any file that has the
    .ecc
    extension will adhere to the language service provided, see examples)
  4. As value, enter a language service (this is the language service that will provide syntax highlighting and code analysis for the file type, see examples)
  5. Click "Ok"
If the above does not work, visit Visual Studio Code's Documentation on File Type Associations.
Verify that the file type association was successful by opening the file in your IDE and testing that autocomplete and syntax highlighting are working.

Visual Studio

  1. Go to Tools > Options > Text Editor > Extensions
  2. In the extension box, enter the desired file extension without * (ex: inputting .ecc will make it so any file that has the
    .ecc
    extension will adhere to the language service provided, see examples)
  3. Under the Editor dropdown, choose which language service to use for that file extension (this is the language service that will provide syntax highlighting and code analysis for the file type, see examples)
  4. Click on Add
  5. Click on Ok
You might need to restart Visual Studio for changes to take effect. This feature is not available in Visual Studio for Mac.
If the above does not work, visit Visual Studio's Documentation on File Type Associations
Verify that the file type association was successful by opening the file in your IDE and testing that autocomplete and syntax highlighting are working.

File type association examples

Economy

Language Service

File Type

json*.ecc
json*.eci
json*.ecv
json*.ecr

Remote Config

Language Service

File Type

json*.rc

Leaderboards

Language Service

File Type

json*.lb

Access Control

Language Service

File Type

json*.ac

Cloud Code

Cloud Code .js files use JavaScript by default as a language service.
Cloud Code .ccm files are zipped files that are not meant to be modified by hand, therefore no file associations should be made.

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.

  • On this page
    • Benefits of file type associations

    • Setting up file type associations

      • Rider

      • Visual Studio Code

      • Visual Studio

    • File type association examples

      • Economy

      • Remote Config

      • Leaderboards

      • Access Control

      • Cloud Code