<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`Vault`](Vault) › [on('create')](Vault/on('create').md)
## Vault.on('create') method
Called when a file is created. This is also called when the vault is first loaded for each existing file If you do not wish to receive create events on vault load, register your event handler inside [Workspace.onLayoutReady()](Workspace/onLayoutReady)<!-- -->.
0.9.7
**Signature:**
```typescript
on(name: 'create', callback: (file: TAbstractFile) => any, ctx?: any): EventRef;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| <code>name</code> | <code>'create'</code> | |
| <code>callback</code> | <code>(file: </code>[`TAbstractFile`](TAbstractFile)<code>) => any</code> | |
| <code>ctx</code> | <code>any</code> | _(Optional)_ |
**Returns:**
[`EventRef`](EventRef)