Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Peek Properties JavaNew to Visual Studio Code? Get it now.
Peek Properties Java

Peek Properties Java

Siva Chandran

|
1,682 installs
| (0) | Free
Peeks out the value of a porperty when hovered over the property's key in a java file.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Peek Properties Java

Description

Peeks out the value of a property when hovered over the property's key in a java file(getProperty method).

Features

  • Works only in .java files.
  • Works only when hovered over the key of the getProperty() method.
  • Displays the matched value for the key that is hovered.

Setting up the .properties file path

The default value for the file path is currently open folder /resources/config.properties

When the extension gets activated and a java file with a getProperty method is open in the active editor then the input box shows up and asks for the path to the properties file.

Input Box

If the input box was ignored or a invalid path which has no .properties file was given then a warning message will be displayed and the default path is taken into account.

You can set the path anytime by right clicking in the editor context menu and selecting the option "Set a new .properties file Path". This opens up the same input box and overwrites the existing path.

Menu


Usage

In a .java file, when hovered over the argument of the getProperty() method, a message box opens and it displays the value of the corresponding argument.

Message is displayed displayed when hovered

How it works

It takes the argument inside the getProperty() method as an input and then goes to the properties file whose path was already provided where it finds the corresponding value for the argument and displays it in a message box to the user.

2.0.0

  • Properties key can contain any special characters or symbols.
  • Properties value can also contain any special characters or symbols.
  • Input box shows up only when a java file with a valid getProperty() method is open.
  • Path to the properties file can be set anytime using the context menu.

1.0.0

Initial release.

Developed by Siva Chandran.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft