Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The previous implementation did not support tab indentations or deeply nested types. Instead of using indentationWidth to pad the generated code, we deduce the current indentation depth from the first line in the selection and check if the user prefers tabs for the initializer body. This commit also inserts a new line between the variables and generated initializers, as this seems to be a common Swift design choice.
- Loading branch information
1 parent
0345a56
commit 51ab77c
Showing
3 changed files
with
41 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters