首页  >  文章  >  Java  >  IntelliJ 备忘单

IntelliJ 备忘单

WBOY
WBOY原创
2024-08-30 15:15:59948浏览

IntelliJ 备忘单支持各种编程语言,如 Java、CloudSlang、Clojure、Dart、Erlang、Go、Groovy、JavaScript、PHP、Ruby 或 JRuby、TypeScript、HTML、Perl、Haxe、Rust、Scala、XML/JSL、Kotlin 、Haskell、Lua、Julia 和 Python。它支持Android、Junit、Maven、TestNG、Django、EJB、Grails、JSF、JSP、Node.js、Play、struts、web services、Hibernate、ruby on Rails等平台和技术

广告 该类别中的热门课程 INTELLIJ IDEA - 学习路径 | 4 门课程系列 | 6 次模拟测试

开始您的免费软件开发课程

网络开发、编程语言、软件测试及其他

IntelliJ

  • IntelliJ也称为IntelliJ IDEA,它是一个Java集成开发环境(IDE)。它用于创建或开发软件。 JetBrains 开发了它。它是用 Java 编写的。它最初于 2001 年发布,但自 2010 年以来,它也是用于 Java 编程的顶级工具之一。它支持的操作系统有windows、Mac OS、Linux。
  • IntelliJ IDEA 具有许多功能,例如分析上下文后完成代码、允许转移到类或直接声明代码的代码导航、代码重构以及修复不一致的选项。它还提供与 Gradle、grunt 等其他工具、GIT、SVN 等版本控制以及 MSSQL server、MySQL 和 Oracle 等数据库的集成。

IntelliJ 备忘单上的命令和内容

IntelliJ 备忘单拥有丰富的库,可扩展、可扩展且具有交互性,并且包含许多用于计算常见操作的内置方法。有不同的命令可用于执行基本选择、代码完成和重构命令。

下面是执行不同类型操作的命令的 IntelliJ 备忘单:

Command Description
Ctrl + / This command is used to Comment Line
Ctrl + Shift + / It is used to Comment Block
Ctrl + D It is to Duplicate Line
Alt + Shift + Down/Up To Move line
Ctrl + Alt + Shift + Down/Up To Move the Whole statement
Ctrl + – It is to Collapse block
Ctrl + + It is used to Expand block
Ctrl + Shift + +/- When we need to Collapse/ Expand the whole file
Ctrl + A Need to Select Whole life
Ctrl + W When to Extend the selection to the next block
Ctrl + Shift + W It is used to Shrinks selection
Alt + J When to Select next occurrence
Alt + Shift + J When to Deselect next occurrence
Ctrl + shift + F7 Helps in Highlight all usages in file
Ctrl +Alt + Shift + J It is to Select all occurrence in the file
Ctrl + Space Suggest
Ctrl + Space X2 Getting the Deeper level suggestion
Ctrl + shift + space It helps in getting the List of matching suggestion
Ctrl + shift + space x2 A suggestion in return statement
Ctrl + Shift + enter Complete statement
Shift + F6 Rename
Ctrl + Alt + V Extract variable or field
Ctrl + Alt + M Encapsulate code in a new method
Ctrl + Alt + C Extract selected expression in a context
Ctrl + Alt + P Extract selected expression in a parameter
Ctrl + Alt + T Surround selected code

还有一些其他可用于代码帮助和导航的命令;请在下面找到:

Command DESCRIPTION
Ctrl + P  It is used to see the method signature
Ctrl + J It is used to insert a live template
Ctrl + Q It is to see the method documentation
Ctrl + Alt + L Used to Reformat code
Ctrl + shift + i It is to see the definition
F2 It helps in finding the next highlighted error in a file
Ctrl + F1 It is used to see the description error
Alt + Enter It provides a suggested solution
Ctrl + N When it is required to search class
Ctrl + Shift +N It is used to search file
F4 It helps in Jump to source
Ctrl + B Jump to declaration
Ctrl + Alt + B Jump to implementation
Ctrl + F12 It is used to see a file structure

使用 IntelliJ 命令备忘单的免费提示和技巧

  1. IntelliJ IDEA 附带两个非常有用的预配置快速列表,如下所示。
  • 重构此部分(Windows/Linux 上为 Ctrl + Alt + Shift + T,Mac OS 上为 Ctrl + T)
  • VCS 操作(Windows/Linux 上为 Alt+`,Mac OS 上为 Ctrl + V)。
  1. 借助 IntelliJ idea,可以使用 Windows/Linux 上的 Ctrl + Shift + 箭头命令和 Mac OS 上的 Shift + cmd + 箭头命令来调整工具窗口的大小。
  2. 以下命令可以在 Windows 上使用“Win + up”,在 Mac OS 上使用“Ctrl + cmd + =”来最大化窗口。
  3. 以下命令可以在 Windows 或 Linux 上使用“Ctrl + Alt + J”,在 Mac OS 上使用 Cmd + ‘ 移动到下一个项目窗口。
  4. 在 IntelliJ 中,有很多键盘设置。智能键可用于切换成对括号、引号和大括号的自动插入,并启用驼峰。可以通过设置->启用智能钥匙编辑->一般->智能钥匙。
  5. 有一件重要的事情要确保所选的键盘映射不与操作系统冲突。以下是 Ubuntu 命令:
  • 着色窗口,分配给 Ctrl + Alt + S,与设置冲突
  • 锁定屏幕,分配给 Ctrl + Alt + L,与重新格式化代码冲突
  • 启动终端,分配给 Ctrl + Alt + T,与 Surround With 冲突
  • 切换到工作区,分配给 Ctrl + Alt + 箭头,与 IDE 内导航发生冲突
  • 分配给 Alt + F7 的移动窗口与“查找用法”发生冲突
  • 调整窗口大小,分配给 Alt + F8,与评估表达式冲突
  • 分配给 Ctrl + Alt + F12 的虚拟控制台与 Commit 冲突

结论

IntelliJ 备忘单如今在 javascript、Json 和其他 Java 编程或脚本语言的开发人员中越来越流行。它基本上是简单、容易且灵活的,适用于所有平台。它有助于运行、调试、编译和测试应用程序。它用于部署应用程序、分析应用程序、查看源代码的结构和层次结构、模块依赖关系以及使用工件和使用文件监视程序。它主要兼容几乎所有的工具、框架、版本控制和技术,因此它是当今任何开发人员的首选。

以上是IntelliJ 备忘单的详细内容。更多信息请关注PHP中文网其他相关文章!

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
上一篇:Cheat Sheet Java下一篇:Frameworks in Java