This extension inserts document templates for the swift language inside your code. This code is very
similar to Add Documentation as can be found in Xcode.
Documentation can be added to the types:
- variables
- methods
- enums
- struct/class
The default keybinding for swift-add-documentation is the key combination CMD+Alt+/.
Use tab to move from field to field.
Alternatively the template can be inserted by typing the
prefix ///:
Adding documentation lines can be done using shift+enter:
Using shift+alt+enter allows to open a new comment line
from the middle of the sentence.
Additionally it will indent to match the previous line.
Finally this will also work for regular comments
This extension has no requirements
although without the swift module it will not have much use.
No settings.
No known issues. Given that this is a first release it should be expected that bugs will reveal itself.
- Fixed default hotkeys. They were in the wrong place in the
package.jsonfile. - Added functionality to insert the template after typing
///. - Added functionality to start a new comment line when using typing
enter+return. - Added functionality to insert a new comment line when using typing
enter+opt+returnthat can be used in the middle of the current line and does not break up the existing line.
- Initial release





