Make the Java constructor snippet take the class name from the file name

This commit is contained in:
Roey Darwish Dror 2019-10-10 13:45:50 +03:00
parent 221f2c340a
commit 6df388f9fd
1 changed files with 3 additions and 1 deletions

View File

@ -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
}