# GetShortcutBinding(string)

> Returns the active binding for the given shortcut ID.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.ShortcutManagement](/engine/6000.5/script-reference/unityeditor/shortcutmanagement.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
ShortcutBinding GetShortcutBinding(string shortcutId)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): ID of shortcut to retrieve binding for.

### Returns

| Type                                                                                                 | Description                  |
| ---------------------------------------------------------------------------------------------------- | ---------------------------- |
| [ShortcutBinding](/engine/6000.5/script-reference/unityeditor/shortcutmanagement/shortcutbinding.md) | Active binding for shortcut. |

### Remarks

The return value depends on the active profile ([IShortcutManager.activeProfileId](/engine/6000.5/script-reference/unityeditor/shortcutmanagement/ishortcutmanager/activeprofileid.md)). Throws `ArgumentNullException` if `shortcutId` is `null`. Throws `ArgumentException` if `shortcutId` is not available, i.e. when [IShortcutManager.GetAvailableShortcutIds](/engine/6000.5/script-reference/unityeditor/shortcutmanagement/ishortcutmanager/getavailableshortcutids.md) does not contain `shortcutId`.
