🚀 A VSCode extension for enhancing Java development with powerful reference copying and automatic import management functionality.
- Copy Java References with a simple right-click
- Automatic Import Management when pasting references
- Smart Reference Formatting based on element type
- Support for all Java elements:
- Classes & Interfaces
- Methods & Constructors
- Fields & Constants
- Enums & Annotations
This extension helps you save time and reduce errors by quickly copying and pasting fully qualified references with proper imports. It's especially useful for developers working with complex Java codebases.
- Open any Java file
- Place your cursor on a Java element (class, method, field, etc.)
- Right-click and select "Copy Java Reference"
- The fully qualified reference is copied to your clipboard
- Copy a Java reference using the extension
- Navigate to where you want to use the reference
- Right-click and select "Paste Java Reference with Import"
- The extension automatically:
- Adds the appropriate import statement
- Inserts the simplified reference at cursor position
- Formats the reference according to its type
- Copies:
com.example.User - Pastes:
Userwith import added
- Copies:
com.example.User.getId - Pastes:
User.getId()with import added
- Copies:
com.example.User.STATUS - Pastes:
User.STATUSwith import added
- VS Code 1.60.0 or higher
- Java extension for VS Code
Contributions are welcome! Feel free to submit issues or pull requests on our GitHub repository.
- Performance improvements and bug fixes
- Change name
- Full support for classes, interfaces, enums, methods and fields
- Smart reference detection and formatting
- Automatic import management
- Method references with proper parentheses handling