# GetAvailableShortcutIds()

> Returns an enumeration of all available shortcut IDs.

## Definition

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

```csharp
IEnumerable<string> GetAvailableShortcutIds()
```

### Returns

| Type                                                                                                    | Description                            |
| ------------------------------------------------------------------------------------------------------- | -------------------------------------- |
| [IEnumerable\<string>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1) | Enumeration of available shortcut IDs. |

### Remarks

The returned enumeration depends on the active profile ([IShortcutManager.activeProfileId](/engine/6000.0/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.0/script-reference/unityeditor/shortcutmanagement/ishortcutmanager/getavailableshortcutids.md) does not contain `shortcutId`.
