In Java, it should be said that most programs always have some fixed combinations. The most common in Java is try catch (exception e. I learned Java deeply after learning C language for a long time, so I am not used to it. I always forget to write it at the beginning, when an error is reported during compilation, throws exception is added to the method, but this is not a good habit. I remember that when I wrote try, I sometimes forgot to write catch. I finally accidentally found the function to be mentioned below.
When you want to write a try, press the key combination: "Ctrl + E". You can see that something jumps out. What is the purpose? Just try it. It includes Automatic Generation of the following modules: "javadoc comment... while loop with block... system. out. println... A lot of things, all of which affect vision ". I am afraid to write more things for such a good thing. I am afraid that writing well will make me feel guilty. I will leave it to the comrades who can see this article to feel it.
I personally feel that this function is the best among all the functions provided by jcreator. Since I found this feature, I like it more and more. This taste can be realized only after you understand it.
It is said that it is not dare to write, but there are some things I should mention. If you do not like the format of some code generated by it (this is normal, I do not like it and do not put '{' in a single line), you can also change it. Method: Select configure-> options-> code template from the menu. the last row of the list on the left is displayed.
There are two upper and lower parts on the right. When you select a label above, you can set it in the following area. For example, if "forb" is selected, the following content should be:
For (int I = 0; I
When writing C, the brothers who use TC often press these keys: F9, Ctrl + F9, Alt + F5. Compile, run, and view results respectively. Needless to say.
This shortcut is very convenient, isn't it? When you press the keyboard, You do not always like to move the mouse. However, JCreator's default shortcut keys are only effective when you press F7 to create a project for each Applet. It seems that there is no default shortcut key for compiling/running the Application, this makes me more and more uncomfortable after using v3.5, and I want to know where to set it. Finally, I found it.
Choose Configure-> mimize-> Keyboard from the menu. For the shortcut key for creating "Compile a single program", click in this order: Select "Build" in "Category", and then select "Compile file" in "Commands ", move the cursor to the text box under "Press New Shortcut", Press the key you want to Press, and then select "Assign" on the right after the Press is complete. Of course, JCreator makes sure that the key combination you are currently pressing is unique in the system. If there is any conflict, it will report it. So please add it with confidence.
For other commands, you can add your habits as you like. For people like me who like nostalgia, I set the combination of "compile" and "run" to "Ctrl + F9" and "Alt + F5" respectively, it is also a Miss of TC.
In addition, other jcreator shortcut keys can be found in "using the editor"-> "keyboard shourcuts" of "jcreator help". All the other words are too tired!
If you want to write a program in a Windows environment, you should have a certain understanding of the common shortcut keys in windows, and the commonly used shortcut keys should be used skillfully. For example, there is absolutely no need to talk about the basics of "undo... copy.
But how many people do not know how to use this combination? "Ctrl + tab... Ctrl + F4 ". It is "Ctrl" rather than "Alt ".
These functions are similar. in the Windows taskbar, "Alt" is used to switch and close windows, while "Ctrl" is used to switch and close small windows within a process. Jcreator can also be used like Netscape and Tencent Brower. However, if you only want to keep only one small window in the editing window and close all other windows, you can still use the mouse, especially when the window is too open.
OK. You don't have to say much here.
A mature tool or anything else will provide a well-developed help document, such as the api_docs and Windows Help documents in Java language... These documents are written by developers and should be an authoritative explanation. Theoretically, you can find the answers to all the problems encountered by using this tool. Therefore, it is a programmer's basic business quality to learn how to use the documentation provided by the tool to solve the problem. I wrote several thousand words (including some nonsense) in three articles, but when I carefully read the various jcreator menus, I found that there are still some details not mentioned, but after thinking about it, I decided not to write any more. Leave it to my friends who use it to explore it.
This article is an English version of an article which is originally in the Chinese language on aliyun.com and is provided for information purposes only. This website makes no representation or warranty of any kind, either expressed or implied, as to the accuracy, completeness ownership orreliability of the article or any translations thereof. If you have any concerns or complaints relating to the article, please send an email, providing a detailed description of the concern orcomplaint, to info-c...@alibabacloud.com. A staff member will contact you within 5 working days. Once verified, infringing content will be removed immediately.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to: info-c...@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.
ff7609af8f