Make the Java constructor snippet take the class name from the file name
This commit is contained in:
parent
221f2c340a
commit
6df388f9fd
|
@ -2,6 +2,8 @@
|
|||
# name: constructor
|
||||
# key: c
|
||||
# --
|
||||
public ${1:Class} (${2:args}) {
|
||||
public ${1:`(file-name-base
|
||||
(or (buffer-file-name)
|
||||
(buffer-name)))`}($2) {
|
||||
$0
|
||||
}
|
Loading…
Reference in New Issue