clemos / haxe-sublime-bundle

Sublime Text bundle for Haxe programming language
Apache License 2.0
237 stars 86 forks source link

unknown members generation #203

Closed ghost closed 9 years ago

ghost commented 9 years ago

Move your cursor on a word inside class or abstract and press Ctrl+Shift+1: out

Closes #194

You can change fields and modifiers order in sublime's settings:

/*
    Fields order:
    V - static variables
    F - static functions
    v - variables
    f - functions
*/
"haxe_fields_order" : "VFvf",

/*
    Modifiers order:
    o - override
    p - private or public
    i - inline
    s - static
*/
"haxe_modifiers_order" : "opis"

If you prefer this coding style:

function() {
}

You can save this code in your sublime's User directory as Haxe.tmPreferences:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>name</key>
    <string>Globals</string>
    <key>scope</key>
    <string>source.haxe.2</string>
    <key>settings</key>
    <dict>
        <key>shellVariables</key>
        <array>
            <dict>
                <key>name</key>
                <string>TM_CSLB</string>
                <key>value</key>
                <string><![CDATA[ ]]></string>
            </dict>
        </array>
    </dict>
    <key>uuid</key>
    <string>0ef292cd-943a-4fb0-b43d-65959c5e6b06</string>
</dict>
</plist>
clemos commented 9 years ago

Thx