1
1
Fork 0

Capitalize IDEA

This commit is contained in:
Bruce Eckel 2020-10-12 04:16:03 -06:00
parent ec9381a33c
commit 1a1af1259a
7 changed files with 9 additions and 9 deletions

View File

@ -1,6 +1,6 @@
## Mastering the IDE: Extract Function ## Mastering the IDE: Extract Function
IntelliJ Idea allows you to extract repetitive code into a function. Select the IntelliJ IDEA allows you to extract repetitive code into a function. Select the
following code in the body of the first function: following code in the body of the first function:
``` ```

View File

@ -1,6 +1,6 @@
## Mastering the IDE: Generating `toString` ## Mastering the IDE: Generating `toString`
IntelliJ Idea can automatically generate the `toString()` member function. IntelliJ IDEA can automatically generate the `toString()` member function.
Call the <span class="control">`Generate`</span> action, or use the shortcut Call the <span class="control">`Generate`</span> action, or use the shortcut
<span class="shortcut">&shortcut:NewElement;</span>, or click on the main <span class="shortcut">&shortcut:NewElement;</span>, or click on the main

View File

@ -4,7 +4,7 @@ We've already used <span class="control">`Quick Documentation`</span> action to
check the variable type. <span class="control">`Quick Documentation`</span> check the variable type. <span class="control">`Quick Documentation`</span>
also produces information about any symbol, including a function or a class. also produces information about any symbol, including a function or a class.
Press <span class="shortcut">&shortcut:QuickJavaDoc;</span> when the caret is Press <span class="shortcut">&shortcut:QuickJavaDoc;</span> when the caret is
on a class or a function usage, and IntelliJ Idea will show you the available on a class or a function usage, and IntelliJ IDEA will show you the available
documentation for this function or class. documentation for this function or class.
Put the caret on the `String` type and its `get()` and `length()` member Put the caret on the `String` type and its `get()` and `length()` member

View File

@ -1,9 +1,9 @@
## Mastering the IDE: Auto-import ## Mastering the IDE: Auto-import
IntelliJ Idea can import declarations for you automatically if you choose the IntelliJ IDEA can import declarations for you automatically if you choose the
required declaration in the completion list. required declaration in the completion list.
Complete the class name `IsoscelesRightTriangle` defined in `Triangle.kt`. To Complete the class name `IsoscelesRightTriangle` defined in `Triangle.kt`. To
complete a name, either start typing it or call the completion explicitly by complete a name, either start typing it or call the completion explicitly by
using <span class="shortcut">&shortcut:CodeCompletion;</span> shortcut. Notice using <span class="shortcut">&shortcut:CodeCompletion;</span> shortcut. Notice
how IntelliJ Idea adds an `import` statement. how IntelliJ IDEA adds an `import` statement.

View File

@ -8,7 +8,7 @@ change it in one place and forget to change elsewhere, which can lead to
difficult-to-find bugs. difficult-to-find bugs.
When a constant appears in multiple places in your code, it's wise to extract When a constant appears in multiple places in your code, it's wise to extract
it into a property. IntelliJ Idea allows you to do this automatically. Select it into a property. IntelliJ IDEA allows you to do this automatically. Select
the constant `10` in the code sample, and call <span class="control">`Extract the constant `10` in the code sample, and call <span class="control">`Extract
Property`</span> action. You can also use the <span Property`</span> action. You can also use the <span
class="shortcut">&shortcut:IntroduceField;</span> shortcut or choose <span class="shortcut">&shortcut:IntroduceField;</span> shortcut or choose <span

View File

@ -6,7 +6,7 @@ action, and IntelliJ IDEA allows you to do that by clicking a shortcut. A
shortcut is a special key combination that causes a specific command to be shortcut is a special key combination that causes a specific command to be
executed. Throughout this course, you'll learn common shortcuts. executed. Throughout this course, you'll learn common shortcuts.
IntelliJ Idea is a *keyboard-centric IDE*, which means you can perform all IntelliJ IDEA is a *keyboard-centric IDE*, which means you can perform all
actions using only the keyboard. We recommend learning to do everything actions using only the keyboard. We recommend learning to do everything
with keyboard shortcuts. with keyboard shortcuts.

View File

@ -1,10 +1,10 @@
## Mastering the IDE: `iter` Live Template ## Mastering the IDE: `iter` Live Template
IntelliJ Idea rapidly creates frequent-used expressions using <span IntelliJ IDEA rapidly creates frequent-used expressions using <span
class="control">`Live templates`</span>. Type `iter` and then press <span class="control">`Live templates`</span>. Type `iter` and then press <span
class="shortcut">&shortcut:ExpandLiveTemplateByTab;</span>. This live template class="shortcut">&shortcut:ExpandLiveTemplateByTab;</span>. This live template
expands into a `for` expression. You type the expression you want to iterate expands into a `for` expression. You type the expression you want to iterate
over, along with the name for the index variable. IntelliJ Idea automatically over, along with the name for the index variable. IntelliJ IDEA automatically
suggests the variable name to iterate over if it's available in the context. suggests the variable name to iterate over if it's available in the context.
``` ```