Shortcut to autoformat tables in feature files
If you want to align the columns of a table in a feature file you can (re-)type the final pipe '|' on the last line. This works fine but could be improved.
It would be very convenient if you can just press a (configurable) keyboard shortcut that would reformat the table that the cursor is currently in.
0
-
Hello, use CTRL+K+D, this is the regular VS shortcut to format file, it works with specflow files and tables.
0 -
Hi Dominique,
Thanks for that reminder, I must say I did not remember that one immediately ;)
But CTRL+K+D applies to the whole file and that may not be desirable for multiple reasons:
- It may reformat things you don't want reformatted (e.g. it removes white lines in scenario comments)
- It may make many changes to the file unrelated to the one your are making, making a code review or pull request harder
Cheers,
Geert-Jan
0
Please sign in to leave a comment.
Comments
2 comments