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

查看:24
本文介绍了在 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.

有些人告诉我尝试在我的 Windows 操作系统上使用快捷方式 WIN +/ 进行评论,但这似乎不可行.

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

推荐答案

这取决于您使用哪种语言编写(是 CSS、Javascript、HTML?)

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-shift-/ 在所选代码周围添加/* */.
  • Ctrl-shift-J 添加 Javadoc 注释.
  • 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天全站免登陆