在 VS 2008 中取消注释 CSS 的快捷方式?
我使用这个问题中提到的宏来评论文本选择VS 2008 中的 CSS 编辑器。我正在寻找另一个取消注释的宏。
I used the macro mentioned in this question to comment a text selection in the CSS editor in VS 2008. I am looking for another macro which uncomments comments.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只需编写一个类似的模块/方法,我认为应该可行,我没有尝试过,但这就是我的想法。
请将此视为您链接的帖子的补充,您可以从该帖子中查找其他详细信息。
注意:如果 /* */ 之间没有嵌套 *,则此方法有效
否则你必须做出必要的改进/改变
Just write a similar module/method, I think that should work, I haven't tried, but this is what I think.
Please consider this as addition to the post that you have linked, you can look for the other details from that post.
Note: this works if you have no nested * in between /* */
Otherwise you have to make necessary improvements/changes
正如 IObservable 的 Brian Schmitt 建议 ,您可以使用相同的键来注释和取消注释您的代码,当然取决于它是否已经注释。他用来实现此目的的代码如下:
我从代码中删除了他的注释,因为它们弄乱了 SO 的代码着色,但他提供的选项似乎非常方便。此外,在上面提供的链接中,他解释了如何绑定快捷键以使其正常工作。
As Brian Schmitt of IObservable suggests, you could use the same key to comment and uncomment your code, depending of course on whether or not it's already commented. The code he uses to achieve this is the following:
I removed his comments from the code as they messed up SO's code coloring, but the option that he gives seems pretty convenient. Also, in the link provided above, he explains all about how to bind the shortcut keys to make it work right.