Quick use C ++ Builder IDE experience

zhaozj2021-02-11  220

People are relatively lazy and always find a shortcut when doing things. There is also a period of time with BCB, summarizing some shortcuts using IDE, I hope to bring a little convenient to friends who use BCB. These seem simple skills, using the programming work to improve many efficiency, but very little person is noted.

First, use shortcuts not to speak BCB shortcuts, here only talk about some of us often use, should be noted. These shortcuts are slowly remembered during use, and there is no need to go back. FILE: Save Ctrl Save All Ctrl Shift S Edit: Undo Ctrl Z Redo Ctrl Shift Z Search: Find Ctrl F Find Again F3 Replace Ctrl R Goto Line Number ... Ctrl g View: Project Manager Ctrl ALt F11 Object Inspector F11 Object Treeview Shift Alt F11 Toggle Form / Unit F12 Units ... Ctrl F12 Forms ... Shift F12 Project: Compile Unit Alt F9 Make (My Project) Ctrl F9 Run: Run F9 Step Over F8 Trace Into F7 Run To Cursor F4 Evaluate / Modify Ctrl F7 Add Watch Ctrl F5 Program Reset Ctrl F2 Mouse Right Down: Open Source / Header file Ctrl F6 Close Page Ctrl F4 Open File at Cursor Ctrl ENTER TOPIC Search F1

Second, developing a self-style shortcut key is just a small part of the function, and so many shortcuts can not remember at once, some features have not shortcuts. BCB provides a powerful custom IDE feature, you can also formulate more convenient IDEs in accordance with their own habits. 1. Environment settings: Tools-> Environment Options Preference AutoSave options selected Editor files selected Project desktop 2. Edit settings: Tools-> Editor Options General Editor options select the Use tab charactor select Undo on after save set Tab stops to 4 Display Display and file Options Select Zoom to Full Screen Code Insight Automatic Feature Sets DELAY to edit Templates for your own style for the smallest code templates. 3. Toolbar Settings Let the toolbar account for one of the screen width, and display the commonly used function buttons on the toolbar, hide unused. Here is my toolbar (screen resolution 800 × 600): 4. Save the commonly used Desktop mode I generally use three modes: (0) Object Inspector, ClassExplorer, and Editor to integrate together: Editing code (1) Object Inspector, ClassExplorer merges with Editor: Editing Components (2) will (0) full screen: Use three when you edit console programs or debug, learn to use to help this is very important to use BCB, please press F1 Key, BCB will give you a reply that satisfies you. BCB provides a very intuitive and comprehensive help, and the focus is positioned to any place to press F1 buttons. For example, code, VCL components, a dialog, or even menus. The words of the menu item in the one are copied by F1 :)

Fourth, other functions of BCB 1. Longitudinal selection generally select a piece of action is a row, if you want to operate a column of the vertical direction? You can press and hold the Alt and select it, you can use the mouse to select, you can press the SHIFT to press ← → ↑ ↓ and the Page Up / Page Down key. 2. Quickly view the definition to view the definition of the code or function, you can hold down Ctrl and move it with the mouse to the code, and the code will present a link shape. Click to directly jump to the category, variable, or a function of the function. 3. Quickly select the form form often by other components, and cannot choose directly through the mouse. When a Panel component is full of Form's client area with a client alignment, you want to select Form. It can be selected by the drop-down combination frame at the top of the object viewer (Object Inspector), but it is not convenient. At this time, you can first select Panel, then press the ESC button, and the focus is positioned to the Form. Other container components can also be selected in this way. In fact, the IDE is a parent object that turns focus to the selected object. Play a MEMO on the PANEL, select MEMO with the mouse, press ESC twice, then the focus is positioned to Panel and Form. BCB6 provides Object TreeView, which is convenient to choose over there. 4. Change the attributes of several components at the same time. When you select multiple components, the object viewer will display the common attributes of these components, and the Object Inspector. For example, if you want to make a few EDIT components in the Form, you only need to select them at the same time, then change the width property in the object viewer, all the component width you select will become a new width. value. This is also the way to clear the text attribute of many Edit components. 5. Select the component Panel panel in the Container (container) is often used as a container for other components. You may want to select several components on the Panel panel to move them or change their common properties. You can of course select these components through SHIFT clicking. However, if you want to select by dragging the mouse, you will only run the Panel. Pressing the CTRL button to dragging, it is completely different. This approach applies to all container components (Groupbox, Scrollbox, Controlbar, etc.). 6. When fine tuning, you will make a subtle adjustment on the components on the Form. After selecting a component, press and hold the CTRL button and then press the arrow key (four arrows) to move the components in the corresponding direction in units of pixels. Press and hold the SHIFT and CTRL keys at the same time, then press the direction key to move the component to the next grid positioning point. If you want to make the component to elongate or shorten a pixel point, press and hold the SHIFT button and press the arrow button. The left and right key adjustment component width and adjust the height of the component up and down. 7. Use the Alignment dialog box you often need to ensure that a set of components can be aligned in some way. For example, you want an EDIT component to align in the middle of the corresponding Label component. First select the EDIT component, then press and hold the Shift key to select the Label component, right-click on one of the components, select the Align option on the pop-up menu. A Alignment dialog box will pop up, allowing you to align components in some sequence. Very simple, try it. I must point out that this is just the one aspect of using the Alignment dialog, which is actually the principle of the component anchor (Anchor).

The first component of a set of components you selected will be used as an anchor assembly. That is, the anchor assembly does not move, all other components are aligned in alignment. The last thing to say is that View | Alignment Palette is exactly the same as the Alignment dialog. http://shadowstar.126.com/

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

New Post(0)