Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
CSharp_Prog_Guide.doc
Скачиваний:
16
Добавлен:
16.11.2019
Размер:
6.22 Mб
Скачать

Представление классов

В окне Представление классов содержится обзор проекта на основе классов, а не файлов, как в Обозревателей решений. В Представлении классов можно быстро перейти к любому классу или члену класса в проекте. Чтобы открыть Представление классов, в меню Вид щелкните Представление классов.

------------

CTRL-TAB Navigation

At any given time, you may have several active windows in a Visual C# project. To quickly navigate to a window, press CTRL+TAB to display a window that lists all your active tools and source code windows. Move the arrow keys while holding down the CTRL key to select the window to display.

Навигация ctrl-tab

В любое время в проекте Visual C# может быть несколько активных окон. Для быстрого перехода к какому-либо окну используйте сочетание клавиш CTRL+TAB, чтобы отобразить окно со списком всех активных средств и окон исходного кода. Для выбора окна используйте клавиши со стрелками, удерживая клавишу CTRL.

Navigation Bars

At the top of every code editor window is the navigation bar, which consists of two list boxes. The one on the left lists all the classes defined in the current file, and the one on the right lists all the members for the class that is selected in the left list box. You can locate a method by selecting it in the right list box.

Панели переходов

Вверху каждого окна редактора кода расположена панель переходов с двумя списками. В списке слева содержатся классы, определенные в текущем файле, а в списке справа — все члены класса, выбранного в левом списке. При помощи правого списка можно найти метод.

Find in Files

By pressing CTRL+SHIFT+F you can open the Find in Files dialog box to perform search and replace operations across a project.

Note:

To rename methods or types, or change method parameters, use the refactoring feature, which is more complete and intelligent than search and replace.

Object Browser

You can use the Object Browser to navigate source code. First, view the symbols in your solution by narrowing the scope of the Object Browser to My Solution. Then, navigate to the code by right-clicking a symbol and clicking Find All References or Go To Definition.

Navigation Stacks

Visual Studio tracks and remembers cursor movement in the navigation stack. Use CTRL+- to navigate backwards to the previous cursor location and CTRL+SHIFT+- to navigate forwards to the last cursor location in the navigation stack. You can also navigate the stack by clicking Navigate Backwards and Navigate Forwards in the View menu.

Visual Studio also uses a separate navigation stack to track cursor movement for Go To Definition calls. Use CTRL+SHIFT+8 to move back to the cursor location where Go To Definition was called. Use CTRL+SHIFT+7 to move forward in the navigation stack.

Поиск в файлах

При помощи сочетания клавиш CTRL+SHIFT+F можно открыть диалоговое окно Найти в файлах для выполнения операций поиска и замены в проекте.

Примечание.

Чтобы переименовать методы или типы или изменить параметры методов, используйте функцию оптимизации кода, которая является более полной и разработанной, чем поиск и замена.