TAILIEUCHUNG - Lập trình Wrox Professional Xcode 3 cho Mac OS part 15

Tất cả các lựa chọn văn bản chuẩn và các tính năng chỉnh sửa được cung cấp bởi công việc chỉnh sửa văn bản khuôn khổ của hệ điều hành trong Xcode. Nếu bạn cần một bồi dưỡng về cơ bản, tham khảo Trợ giúp Mac OS X. Những phần sau sẽ làm nổi bật một vài tính năng tối nghĩa được đặc biệt hữu ích khi chỉnh sửa mã nguồn. Ngoài ra, Xcode cho biết thêm thiết lập của riêng của mình về tính năng và lệnh. . | Editing 113 EDITING All of the standard text selection and editing features supplied by the operating system s text editing framework work in Xcode. If you need a refresher on the basics refer to the Mac OS X Help. The following sections highlight a few obscure features that are particularly useful when editing source code. In addition Xcode adds its own set of features and commands. Selecting Text All of the standard text selection gestures work in Xcode. Click and drag to select some text. Hold down the Shift key to extend a selection. Selecting text by dragging is dependent on timing see the Drag and Drop section later for an explanation. 3 The standard Mac OS X text editor is sensitive to word boundaries when extending text selections. It s an obscure quirk that most people don t notice but may impact your coding. When you Shift-click to extend a selection Xcode examines the other end of the selection the end not being moved . If that end lies on a word boundary the end being extended snaps to word boundaries. If the stationary end is in the middle of a word or between non-word characters the extended end can be positioned at any character. This makes it very quick and easy to extend a selection to include additional words or symbols because you don t have to select the edge of the word dragging anywhere into the word will suffice. If you start with a selection on a word boundary and want to extend it to a non-word boundary extend the selection using the keyboard Shift right arrow or Shift eft arrow instead. This might be a good time to review the cursor movement modifiers back in the Cursor Movement section. Selecting Columns One of the more obscure features of the editor is the ability to select columns of text. You can select all of the characters between two column positions across multiple lines by holding down the Option key and dragging out a selection. Figure 6-22 shows a column selection. Hold down the Shift and Option keys to extend or contract an .

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.