Skip to content

litefeel/Sublime-ClassName

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ClassName

Build Status Build status Scrutinizer Code Quality codecov

ClassName is a tiny and simple plugin for Sublime Text . It copy class full name and package path to clipboard.

Installtion

  1. Install it using Sublime Package Control.
  2. Run Package Control: Install Package command
  3. find and install ClassName plugin.

Usage

  • Right click to copy class name and package path
  • Ctrl+Alt+C to copy class name

Key Bindings

Default Key Bindings:

[
    { "keys": ["ctrl+alt+c"], "command": "classname_copy" }
]

Change key bindings via menu:
Preferences > Package Settings > ClassName > Key Bindings

Settings

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

Frequently Asked Questions

  1. What is class full name?
    If the path of a file in the sidebar is src/com/litefeel/MyClass.lua,
    so the class full name is com.litefeel.MyClass.

  2. What is package path?
    If the path of a file in the sidebar is src/com/litefeel/MyClass.lua,
    so the package path is com.litefeel.

Related Links

homepage:https://www.litefeel.com/sublime-classname/
github:https://github.com/litefeel/Sublime-ClassName/
issues:https://github.com/litefeel/Sublime-ClassName/issues