Capitalize IDEA
This commit is contained in:
parent
ec9381a33c
commit
1a1af1259a
|
@ -1,6 +1,6 @@
|
|||
## 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:
|
||||
|
||||
```
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
## 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
|
||||
<span class="shortcut">&shortcut:NewElement;</span>, or click on the main
|
||||
|
|
|
@ -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>
|
||||
also produces information about any symbol, including a function or a class.
|
||||
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.
|
||||
|
||||
Put the caret on the `String` type and its `get()` and `length()` member
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
## 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.
|
||||
|
||||
Complete the class name `IsoscelesRightTriangle` defined in `Triangle.kt`. To
|
||||
complete a name, either start typing it or call the completion explicitly by
|
||||
using <span class="shortcut">&shortcut:CodeCompletion;</span> shortcut. Notice
|
||||
how IntelliJ Idea adds an `import` statement.
|
||||
how IntelliJ IDEA adds an `import` statement.
|
||||
|
|
|
@ -8,7 +8,7 @@ change it in one place and forget to change elsewhere, which can lead to
|
|||
difficult-to-find bugs.
|
||||
|
||||
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
|
||||
Property`</span> action. You can also use the <span
|
||||
class="shortcut">&shortcut:IntroduceField;</span> shortcut or choose <span
|
||||
|
|
|
@ -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
|
||||
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
|
||||
with keyboard shortcuts.
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
## 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="shortcut">&shortcut:ExpandLiveTemplateByTab;</span>. This live template
|
||||
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.
|
||||
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue