Đang chuẩn bị liên kết để tải về tài liệu:
Lập trình Wrox Professional Xcode 3 cho Mac OS part 19
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Khi bạn sử dụng cả hai nhận xét tùy chọn định dạng, bạn nên có thói quen của chèn một dòng trắng trước khi bắt đầu một C mới / chú thích C + + theo phong cách riêng trên một dòng. Nếu không, nó có thể có được thụt vào đến cấp độ của bình luận về các dòng trước đó. | 142 CHAPTER 7 SYNTAX-AWARE EDITING exit 3 terminate immediately returning a status of 3 When you use both comment formatting options you should get in the habit of inserting a blank line before starting a new C C -style comment on its own line. Otherwise it may get indented to the level of the comment on the previous line. Re-indenting Text As mentioned earlier re-indenting text uses the language-specific rules to determine the appropriate indentation level for each line. This can happen automatically as you type depending on which syntax-aware indentation options you have enabled or manually when you use Control I or the Edit Format Re-indent command. It also happens whenever text is pasted from the clipboard. You can always manually alter the indentation level of a line or lines using the Edit Format Shift Right Command and Edit Format Shift Left Command commands. These either increase or decrease the indentation of every line in the selection by indentation width. Lines that are already at the left margin cannot be decreased any further. This is just a manual adjustment of the amount of white space at the beginning of the line. A subsequent re-indent recalculates the appropriate indentation level based on the language rules undoing any effect of Shift Right or Shift Left. CODE COMPLETION The most sophisticated feature of syntax-aware editing is Code Completion Xcode s autocompletion technology. Code completion analyzes the context of the code you are typing and interactively offers suggestions for completing the statement. Code completion supports the C C Objective-C Objective-C Java and AppleScript languages. It works by assembling a list of symbol names from the Code Sense index that would be appropriate at that point in your code. If you are starting a new statement the appropriate symbols will include any global variable function class name or language keyword but if you typed a class or structure name the appropriate symbols would be only the member .