如何在 netbeans IDE 中用引号将文本括起来 [英] How to surround a text in quotes in netbeans IDE

查看:50
本文介绍了如何在 netbeans IDE 中用引号将文本括起来的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些文字,比如:

<td id=asd >

netbeans 中是否有快捷方式,可以用引号将所选文本括起来?

Is there a shortcut in netbeans, where a selected text can be surrounded by quotes?

 <td id="asd" >

推荐答案

如前所述,定义了一个引用词宏来引用单个单词.

As already suggested, there is a quote-word macro defined that will quote a single word.

获得引用所选内容的能力:

To gain the ability to quote a selection:

  1. 转到工具->选项->编辑器->宏
  2. 点击[新建]创建一个新的宏.称之为引用选择,或者任何你认为最好的方法.
  3. 粘贴以下宏:

  1. Go to Tools->Options->Editor->Macros
  2. Click [New] to create a new macro. Call it quote-selection, or whatever seems best to you.
  3. Paste in the following macro:

copy-to-clipboard "\"" paste-from-clipboard "\""

  • 点击[Set Shortcut ...],然后按下你想要的快捷键组合(例如shift+ctrl+q)

  • Click [Set Shortcut ...], then press your desired shortcut combination (eg. shift+ctrl+q)

    这篇关于如何在 netbeans IDE 中用引号将文本括起来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆