-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
改进注释相关功能 #718
Comments
Space is added after #711. |
Ctrl + / for standard CSS is disabled by 90dfbf8. |
baf1cc1 added option "Insert space after comment marker on toggle line comment." on Auto Completion Settings dialog. |
Toggle block comment is implemented by 3e79284. |
Implemented by 3494f2e. since this commit, Ctrl + / and Ctrl + Q are interchangeable for scheme with only line comment or block comment, however currently only enabled for CSS, HTML, PHP and XML (where both menus are enabled), this matches Visual Studio Code. uncomment following lines would matches Sublime Text: |
|
支持切换块注释:
目前块注释只能添加,不能切换/去除,会影响下面功能的实现。
改进 CSS 的注释:
虽然 Less 等二次语言支持使用
//
来进行单行注释,但 CSS 本身只支持形如/* */
的注释。所以,使用 Ctrl + / 在 CSS 文件中切换单行注释时,最好也能加上块注释/* */
,而不是只能用 Ctrl + Q 添加块注释。在实现上面一点之前,可以考虑先和 HTML 一样,(为 CSS)禁用行注释,只允许块注释;P.S. 对于不支持行注释(例如 CSS)或不支持块注释(例如批处理)的情况,可以考虑在用户按下有关快捷键时显示一个提示。用检测到二进制文件进入只读模式的那个小提示框应该就够了。
注释内外空格:
建议新增设置项,允许设置是否应当加空格,来保证注释符前后为空白字符(空格或换行符)。这样更接近许多其他代码编辑器的行为。
The text was updated successfully, but these errors were encountered: