Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: creating new classes #23

Open
brandon1024 opened this issue Jun 18, 2022 · 0 comments
Open

feat: creating new classes #23

brandon1024 opened this issue Jun 18, 2022 · 0 comments

Comments

@brandon1024
Copy link
Owner

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant