如何在 VS 2008 中用 HTML 标记快速包围文本?
我正在使用 Visual Studio 2008 编辑器。 有没有办法以一段文本为例,突出显示它并使用快捷方式快速添加标记?
例如,假设我有一条文本,我去了:the store
并且我想将其加粗,我必须输入the store
。 有没有更快、更简单的方法来做到这一点?
I am working with Visual Studio 2008 editor. Is there a way to take a piece of text for example, highlight it and use shortcuts to quickly add markup?
For example, lets say I have a text, I went to: the store
and I want to bold it, I have to type <b>the store</b>
. Is there a quicker and easier way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
选择文本,Ctrl+X,输入将由 vs 自动关闭的标签,Ctrl+V
Select text, Ctrl+X, type in your tags which will be autoclosed by vs, Ctrl+V
使用 HTML 编辑器只需按 Ctrl+B...
使用常规文本编辑器 VS 不提供内置功能,但您可以添加自定义宏。 像下面这样的东西会为你做工作。
然后,您可以将其分配给快捷方式或将按钮添加到工具栏。
With HTML Editor just press Ctrl+B...
With regular text editor VS does not provide something build-in, but you can add custom macros. Something like the following will do job for you.
You can then assign it to the short-cut or add button to your toolbar.