davidderaedt / annotate-extension

Brackets extension to generate JSDoc annotations
MIT License
18 stars 13 forks source link

Fixed indentation issue, and added PHP functions and hotkey support #5

Closed aonic closed 12 years ago

aonic commented 12 years ago

Fixed indentation issue #4 and previously the cursor had to be placed before the function definition for the extension to work, now it does not.

The getTarget() function now checks from the start of the line, and generateComment() now prefixes the comment block with the same whitespace spaces or tabs indentation as the function def line used.

CMD/Ctrl + Shift + D can also be used now