You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating new classes in Vim is a bit clunky. You first have to create an empty file/buffer, then fill in the boilerplace public class <name> { ..., and then the package statement. Yuck.
We can make this a bit easier. In an empty buffer, :JavaNew [<class,enum>] [<class name>]. If a class name isn't given, prompt for it in a popup. We can also try to offer some package statement suggestions based on the path of the file/buffer. For example, if the file is /home/user/project/src/main/java/com/me/HelloWorld.java, we may offer:
no package statement
package me;
package com.me;
package java.com.me;
etc
The text was updated successfully, but these errors were encountered:
Creating new classes in Vim is a bit clunky. You first have to create an empty file/buffer, then fill in the boilerplace
public class <name> { ...
, and then the package statement. Yuck.We can make this a bit easier. In an empty buffer,
:JavaNew [<class,enum>] [<class name>]
. If a class name isn't given, prompt for it in a popup. We can also try to offer some package statement suggestions based on the path of the file/buffer. For example, if the file is/home/user/project/src/main/java/com/me/HelloWorld.java
, we may offer:package me;
package com.me;
package java.com.me;
The text was updated successfully, but these errors were encountered: