Skip to content

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)

← All features

Переход к объявлению процедуры

The user places the cursor on the call ВывестиПриветствие() and presses F12. The editor jumps to the Процедура ВывестиПриветствие() declaration line in the same module.

def-01-procedure

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.

def-02-function

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.

def-03-local-variable

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 Перем НастройкиМодуля Экспорт;.

def-05-module-variable

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.

def-06-cross-module

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.

def-07-peek

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.

def-08-common-module-method

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.

def-09-manager-module-method

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.

def-10-oscript-module

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.

def-11-oscript-class-no-constructor

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.

def-12-oscript-class-with-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.

def-13-oscript-module-method

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.

def-14-oscript-instance-method

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.

def-15-oscript-annotation

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.

def-16-method-via-commonmodule-result


← Back: Code completion · Next: Go to implementations →