Skip to content
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

快捷键注释添加空格 #711

Closed
auqhjjqdo opened this issue Aug 31, 2023 · 5 comments
Closed

快捷键注释添加空格 #711

auqhjjqdo opened this issue Aug 31, 2023 · 5 comments

Comments

@auqhjjqdo
Copy link

现在使用ctrl+/给文本添加注释时,注释符号后面直接是注释文本,但其他IDE都是在注释符号后加上了空格,然后才是注释文本,notepad2的使用习惯有点差别,希望能加上该功能

@zufuliu
Copy link
Owner

zufuliu commented Aug 31, 2023

The shortcut is normally used to comment out code block, adding space seems has no benefit, Visual Studio, Android Studio and Eclipse does not add space.
We can add code to remove the extra space on removing comment marker, also current code has bug on removing comment marker that requires space.

@auqhjjqdo
Copy link
Author

我常用Visual Studio Code和PyCharm编写代码,它们在注释代码时都会在注释符号后面添加空格,但我需要临时在notepad2中添加注释时还要额外添加空格以做到代码风格统一,这令人困扰
db079ede-4a39-4b40-a5b7-35de6ec43bc6
1e51e147-839a-4661-bd63-b37569f67215

@zufuliu
Copy link
Owner

zufuliu commented Sep 2, 2023

Implemented by 0dc02be, please test latest builds from https://github.com/zufuliu/notepad2/actions.

@auqhjjqdo
Copy link
Author

我已经测试了该版本,注释后的空格能正常添加,十分感谢

@zufuliu zufuliu reopened this Sep 13, 2023
@zufuliu zufuliu added 🌐i18n Localization/Internationalization ui labels Sep 23, 2023
zufuliu added a commit that referenced this issue Sep 23, 2023
@zufuliu
Copy link
Owner

zufuliu commented Sep 23, 2023

baf1cc1 added option "Insert space after comment marker on toggle line comment." on Auto Completion Settings dialog.
Auto Completion Settings

@zufuliu zufuliu closed this as completed Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants