ClassName is a tiny and simple plugin for Sublime Text . It copy class full name and package path to clipboard.
- Install it using Sublime Package Control.
- Run
Package Control: Install Package
command - find and install ClassName plugin.
- Right click to copy class name and package path
Ctrl+Alt+C
to copy class name
Default Key Bindings:
[
{ "keys": ["ctrl+alt+c"], "command": "classname_copy" }
]
Change key bindings via menu:
Preferences > Package Settings > ClassName > Key Bindings
Default Settings:
{
// set this string as prefix of class name
"classname_prefix": "",
// set this string as namespace separator
"namespace_separator": ".",
// set this string as suffix of class name
"classname_suffix": ""
}
Change setting via menu:
Preferences > Package Settings > ClassName > Settings
-
What is class full name?
If the path of a file in the sidebar issrc/com/litefeel/MyClass.lua
,
so the class full name iscom.litefeel.MyClass
. -
What is package path?
If the path of a file in the sidebar issrc/com/litefeel/MyClass.lua
,
so the package path iscom.litefeel
.
homepage:https://www.litefeel.com/sublime-classname/
github:https://github.com/litefeel/Sublime-ClassName/
issues:https://github.com/litefeel/Sublime-ClassName/issues