Sublime Forum

Code completion adds too much (class name)

#1

Hi, I’m using Sublime Text 3 to work on Unity C# coding. This question doesn’t really have to do specifically with that though.

The code completion is working just fine, but my problem is that it always seems to add the class name of the thing I’m trying to add, instead of just the variable. For example, if I start typing:

myObject.tran

It comes up with all the correct code completion options - all the classes in Unity with “transform” that exist. When I hit enter or tab to do the completion however, it ends up as this:

myObject.GameObject.transform or myObject.Collision.transform or whatever class I happen to hit enter or tab to autocomplete on, instead of just this:

myGameObject.transform

Is there any way to stop it from adding the class to the code completions? I should say that I have added the package “Unity Completions” to help with my coding. Thank you for any help!

0 Likes

#2

Looks like it is the way the Unity Completions package is designed so probably you want to submit an issue to the package’s repo

0 Likes

#3

Thank you! I will definitely ask them about it on their project page.

0 Likes