Confused ghost
<If you think that the monks write well and repost it, you need to keep "confused", 3q>
Nonsense:
I try to end this series in this article. Here I only want to talk about a little bit of skills. More is something I don't understand. I will write it here to see if someone will give me some advice.
Quick programming _ 3: severe recommendation
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 <|; I ++ ){
}
You can change I ++ to ++ I, and take another line of '{'. Here, this symbol '| ', when editing a program, you can select the mouse position after this module. Of course, you can also define it yourself. When you are satisfied, click "Apply" below and the JCreator will add this item. Oh, forget to say it. You can add items by yourself. There is an "Add" in the middle, isn't it? After you click it, you will be asked to fill in the Label & Description, follow its example to fill it out, and then select it for editing.
Write it here.
Shortcut Key _ 1:
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!
Shortcut Key _ 2:
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.
My questions:
So far, I have finally finished all the low-level and advanced skills I have come up with, so I should ask some questions, to pinpoint the nature of the problem, it may not be about this development tool, but about Java itself.
①. In many development tools, there is such a thing: toggle breakpoint. What is the purpose of this?
② There are also debugger. Only when a debugger occurs, what will the breakpoint stop and do? How can we continue?
(PS @ 5.16) Try again today. In Debugger Mode, the program will run to breakpoint and then click "continue" in "build" to continue the execution, but if no intermediate result is printed before the breakpoint, how can we know the change of the object value? How can we find bugs?
③ When an exception is thrown, E. printstacktrace () is often used; that is, the trace stack. But how does one trace the stack? Does jcreator support viewing data in the program stack? Where is there? If not, what is the purpose of this statement? What else does it do?
I'm dizzy. Why can't I think of so many problems? -_-!!  ̄ _  ̄ !! Let's ask these questions first.
The last nonsense:
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.
Welcome to my blog: http://blog.csdn.net/liltos/ http://liltos.blogdriver.com/