You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe need some strategy to determine whether to add spacing for code
snippets and using which rule to parse the specify language.
For now, you may disable auto spacing on save and using select-and-trigger
mode. Eg select the range then call pangu, it supports multi-select.
Best wishes
Yan Zhu
2017-09-19 11:21 GMT+08:00 Willin Wang <notifications@github.com>:
such as shell script:
sed -i '' -e '1s/.*/${`date +%Y-%m-%d`}/' src/lib/ip.js# to
sed -i''-e'1s/.*/${`date +%Y-%m-%d`}/'src/lib/ip.js
i just want this plugin to format code comments and markdown files.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AD7DFQdOyshB1oeudIPN7Aa7J6kft-WCks5sjzNOgaJpZM4PbzX8>
.
For now, you can try version 0.1.5, it introduces a new option, auto_space_on_save_ext for example.
"auto_space_on_save_ext": [".md", ".txt"], then the auto format will only works on file with those ext.
For code and text mixed scenarios, we need AST to get the text from the entire file. I haven't found a general workaround.
such as shell script:
i just want this plugin to format code comments and markdown files.
The text was updated successfully, but these errors were encountered: