Swift Live Templates#
Noctule provides live templates for Swift files. All available live templates are shown below. Please refer to JetBrains’ documentation about live templates to learn more about the feature.
| Abbreviation | Title | Description |
|---|---|---|
class | Class declaration | Inserts a declarations of an empty class |
struct | Struct declaration | Inserts a declarations of an empty struct |
protocol | Protocol declaration | Inserts a declarations of an empty protocol |
actor | Actor declaration | Inserts a declarations of an empty actor |
enum | Enum declaration | Inserts a declarations of an empty union-style enum |
extension | Extension declaration | Inserts a new extension declaration |
func | Function declaration | Inserts a declarations of an empty function |
init | Initializer declaration | Inserts an empty initializer declaration |
deinit | Deinitializer declaration | Inserts an empty deinitializer declaration |
var | Var declaration | Inserts an empty var declaration |
let | Let declaration | Inserts an empty let declaration |
defer | defer statement | Inserts an empty defer statement |
for | for-in statement | Inserts a new for-in statement |