Unity Completions Light
Unity3D Completions Light - Sublime Text Plugin
- Total 10K
- Win 7K
- OS X 3K
- Linux 606
|May 22||May 21||May 20||May 19||May 18||May 17||May 16||May 15||May 14||May 13||May 12||May 11||May 10||May 9||May 8||May 7||May 6||May 5||May 4||May 3||May 2||May 1||Apr 30||Apr 29||Apr 28||Apr 27||Apr 26||Apr 25||Apr 24||Apr 23||Apr 22||Apr 21||Apr 20||Apr 19||Apr 18||Apr 17||Apr 16||Apr 15||Apr 14||Apr 13||Apr 12||Apr 11||Apr 10||Apr 9||Apr 8||Apr 7|
Unity Completions Light
Package for Sublime Text
This is a lighter version of the Unity Completions package. The full package shows a more detailed, easy-to-use pop-up menu for auto-completions, but on the other hand adds several seconds to Sublime Text's loading time. If you don't open and close Sublime Text too frequently, I recommend using the full version.
The easiest way to install this package is using Package Control. Choose to install the “Unity Completions Light” package. (See installation and usage for help.) Package Control will also keep you updated.
Alternatively you can install this package manually:
- Open the packages directory from the Sublime Text menu (Preferences | Browse Packages…)
- Create a new directory called “Unity Completions Light”
- Copy the contents of this package into the new directory
Simply start typing any Unity term or press Ctrl+Space. You don't have to be accurate - a few consonants may be enough, preferably in the right order.
For example, type in
gbjact and you will instantly be offered completions with these letters:
Notice the type on the right side: [var] for variables, [class] for classes or parentheses with parameter names for functions.
Another example. Type in
pscast and you will be offered:
Notice that functions may appear multiple times if they have several definitions. They can be distinguished by the parameter names. (The pop-up is too small to include the types…)
Once you select a function completion, a full snippet will be inserted, including the parameter types, names and default values:
You can then use Tab and Shift+Tab to quickly navigate between the parameters.
The Unity Completions Light plugin is simple. It does not analyze the code to detect variable types. It only relies on the word being typed. In addition, Sublime Text's auto-complete is interrupted by dots. Typing in a dot will cause Sublime Text to ignore anything before the dot.
Let's say, for example, that you have a variable named
enemy of type
and you want assistance writing
enemy. (with a dot) will not work.
As soon as you type in the dot the completions pop-up will close.
If you continue typing after the dot, for example
you will be presented with completions,
but they will only be based on the part after the dot:
Suppose you choose the completion
you will end up with:
The class name is inserted together with the variable name.
Simply delete the class name manually.
Up to date with Unity version 2017.3.1.
If you're developing in Boo, know that this package recognizes .boo files, but I recommend installing the Boo package as well if you're into syntax highlighting.
(The MIT License)
Copyright © 2013 Ofer Reichman
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.