在Aptana Studio 3.0中查找快捷方式以注释代码 [英] Finding Shortcuts in Aptana Studio 3.0 to Comment Code

查看:137
本文介绍了在Aptana Studio 3.0中查找快捷方式以注释代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到任何快捷方式来评论我的代码在Aptana Studio 3.0。

I can't find any shortcuts for comment my code in Aptana Studio 3.0. I need shortcuts both to comment individual lines and for commenting selected blocks of code.

有些人告诉我要尝试使用快捷方式来评论 WIN + /

Some have told me to try to comment with shortcut WIN + / on my Windows OS but that does not appear workable.

推荐答案

这取决于您使用的语言,

It depends on which language you're writing in (is this CSS, Javascript, HTML?)

对于Javascript:

For Javascript:


  • Ctrl - / 可为单行代码或多个选定行添加或删除//。

  • Ctrl-/ to add or remove // for a single line of code, or for multiple selected lines.

标准的Java注释快捷键是:

The standard Java commenting shortcuts are:


  • Ctrl / 可为单行代码或多个所选行添加/删除//。

  • Ctrl

  • Ctrl-/ to add/remove // for a single line of code, or for multiple selected lines.
  • Ctrl-shift-/ to add /* */ around selected code.
  • Ctrl-shift-J to add Javadoc comments.

您可以随时通过点击Ctrl-Shift来找到快捷方式-l,它将列出所有当前可用的快捷方式。它们将根据您是否选择了任何内容,正在编辑的文件类型等进行更改。查找添加注释,切换块注释,切换JS注释等。

You can always find out shortcuts by hitting Ctrl-shift-l, which will bring up a list of all currently available shortcuts. They will change depending on if you have anything selected, what type of file you're editing, etc. Look for "Add comments", "Toggle block comments", "Toggle JS comments", and so forth.

这篇关于在Aptana Studio 3.0中查找快捷方式以注释代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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