Go to definition¶
Jump from a usage to the declaration of a procedure, function, variable or method. Works within a module and across configuration modules.
Shortcut: F12 / Ctrl+Click (peek: Alt+F12)
Переход к объявлению процедуры¶
The user places the cursor on the call ВывестиПриветствие() and presses F12. The editor jumps to the Процедура ВывестиПриветствие() declaration line in the same module.
Go to a function declaration¶
The user places the cursor on the call Сложить(2, 3) and presses F12. The editor jumps to the Функция Сложить(Знач Первое, Знач Второе) Экспорт declaration line in the same module.
Go to a local variable declaration¶
The user places the cursor on a usage of the local variable Счётчик and presses F12. The editor jumps to its declaration Перем Счётчик; inside the same procedure.
Go to a module-level variable¶
The user places the cursor on a usage of the module-level variable НастройкиМодуля inside a procedure and presses F12. The editor jumps to its module-level declaration Перем НастройкиМодуля Экспорт;.
Go to another common module (cross-file)¶
The user places the cursor on the common module name in a qualified call and presses F12. The editor opens the Module.bsl of another common module and navigates to it across configuration files.
Peek Definition in place (Alt+F12)¶
The user places the cursor on the call ВывестиПриветствие() and presses Alt+F12 to peek the definition. The procedure's definition opens in an inline Peek window right below the call line, without navigating away.
Go to a common module method (cross-file)¶
The user places the cursor on the method name in a call to another common module and presses F12. The editor opens the target common module's Module.bsl and navigates to that method's declaration across files.
Go to a manager module method (cross-file)¶
The user places the cursor on a manager module method name in a call and presses F12. The editor opens the manager module of the corresponding metadata object and navigates to the method's declaration across files.
Go to a OneScript module definition¶
In demo.os, the user places the cursor on the name of an imported OneScript module and presses F12. The editor opens that library module's file and navigates to it.
Go to a OneScript class without a constructor¶
In demo.os, the user places the cursor on the name of a OneScript class without an explicit constructor in a Новый expression and presses F12. The editor opens the class file and navigates to its definition.
Go to a OneScript class constructor (explicit ПриСозданииОбъекта)¶
In demo.os, the user places the cursor on a OneScript class name in a Новый expression and presses F12. The editor opens the class file and navigates to its explicit Процедура ПриСозданииОбъекта constructor.
Go to a OneScript module method¶
In demo.os, the user places the cursor on a method name in a OneScript module call and presses F12. The editor opens the module file and navigates to that method's declaration.
Go to a OneScript class instance method¶
In demo.os, the user places the cursor on a method called on a OneScript class instance and presses F12. The editor resolves the instance type, opens the class file and navigates to the method's declaration.
Go to a registered OneScript annotation¶
In demo-annotation.os, the user places the cursor on the name of a registered OneScript annotation and presses F12. The editor navigates to where that annotation is declared.
Go to a common module method via the ОбщийМодуль() result¶
The user works with a variable assigned the result of ОбщийМодуль("..."), places the cursor on a method called on it and presses F12. The editor resolves the common module from the ОбщийМодуль() result, opens its Module.bsl and navigates to the method's declaration.