-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Autocomplete Tuning
When a user is typing, sometimes it is useful to arrange the autocomplete results so the ones they are most likely to use are displayed first. For example, here we would like findNearestEnemey to display before findNearestItem, as it is the more common use case.
To change it’s position, we can add an Autocomplete Priority in the Components editor. Find the component that provides the function you wish to change and tab to its settings. Using the add attributes button you can add the property.
The default autocomplete priority is 1. This value acts as a multiplier, normally a value of 1.2 is enough to boost a method enough relative to closely matching peers.
Automatic variable capture can be enabled for functions. When this function is autocompleted as the first expression on a line, an assignment to the named variable is inserted in front of it.
This feature is best enabled for functions with no side effects, where calling it without using its value makes no sense.
CodeCombat | Home | Blog | Forum | Teachers | Legal | Contribute
- Home
- Archmage Home
- Artisan Home
- Diplomat Home
- Archmage General
- Mission statement
- Coco Models
- Coding Guidelines
- Cookbook
- File system
- JSON Schema
- Technical overview
- Testing
- Third party software and services
- Artisan General
- Building A Level
- Coding Guidelines for Artisans
- Editing Thang Components
- Important Artisan Concepts
- Keyboard Shortcuts
- Debugging
- Artisan How-To Index
- Diplomat General
- i18n
- i18n Glossary nb
- i18n Glossary ru
- i18n Glossary es-419
- Dev Setup
- Dev Setup: Linux
- Dev Setup: Windows
- Dev Setup: Mac
- Dev Setup: Vagrant
- Dev Setup: Issues
- Game Engine
- Component
- Multiplayer
- Surface
- System
- Thang
- Thang Component System
- Tome
- World
- Artisan Tabs
- Components And Systems
- Scripts
- Settings
- Thangs
- Other
- Aether
- Client models
- Developer organization
- Educational Standards
- Events, subscriptions, shortcuts
- Chat Room
- Chat Room Rules
- Permissions
- Project Ideas List
- Treema
- Versioning
- Views