PE plugin, Struts development good helper

xiaoxiao2021-03-06  95

We know that when developing Struts applications, Properties files are a problem, even if these problems have been solved, finding the key names in the Properties file is also a problem, often switches frequently in each file, it is too much trouble. Below we will introduce the PE plugin, so that your Struts has been facilitated.

1 ProPerties file Writing: PE uses a tree structure to split the key name so that we can use a package mode when designing the key name name, such as logonform.name, logonform.password, making the key name more meaningful and easy to handle. At the same time, the treatment of internationalization, PE also considers that the same Properties file can be edited, and the navigation positioning is more convenient. CRTL Enter allows you to quickly make key-value branches.

2 Key name call: We often need to call these key names in the code, especially in the Java code and JSP files. With PE, the call of the key name is simple, you only need to press CRTL SHIFT ALT SPACE to display the key names in the system all Properties files, the current version must be required to provide the key name prefix character, empty characters Tips, this is not a problem. With the key name prompt, you don't have the necessary files and endless CRTL C and CRTL V.

3 View key value: In a certain segment code, if we cannot understand the meaning representing the key name from the key name, you don't need to find the statement of the key value in the Properties file, see the meaning of his representative. Now, you only need to press CRTL Q in the key name, you can display key values, and internationalization also takes into account.

4 Rename the key name: Sometimes, the name of the key name is too blurred, unknown, the renaming the key name is something trouble, find replacement, endless troubles. With PE, simple, just press SHIFT F6 in the Properties file, if you are referenced in the key name (JSP file), just press SHIFT ALT F6, all reconstruction Operation, PE helps you have finished, and it works simply.

5 Find the key name Use: Sometimes we need to see how much file calls are made by a key name, this is a role in code analysis, this is that you only need to press Alt F7 in the Proerties file. PE will give you the results.

Summary: Through several practical demonstrations, it is believed to provide some convenience to your development. The function of the PE plug-in is not just these, but you can find it in use, the above example is based on Struts, and other situations are similar.

PE plugin Home: http://www.intellij.org/twiki/bin/view/main/propertiesEditorPlugin

Shortcut list of PE plugins: http://www.jetmaven.net/documents/p_ij_pe_shortcuts.php

转载请注明原文地址:https://www.9cbs.com/read-96805.html

New Post(0)