diff --git a/README.md b/README.md index 273d871..91ea649 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,8 @@ If you are using a Mac, there is a version available for you in [./macOs](./macO The titles in the outline below are links to the different chapters. -Each chapter contains a thorough explanation and exercises. -[Windows hotkey tutorial](./windows/outline.md) -Eventhough the progression in these chapters might seem to be naturally increasing in difficulty, you don't need to think of them as thresholds. +Each chapter contains a thorough explanation and exercises. +Alhough the progression in these chapters might seem to be naturally increasing in difficulty, you don't need to think of them as thresholds. The only reason there are chapters is to help your brain make paths even better by trying to categorize certain types of shortcuts so you'll think of them sooner in real life. ## Good Luck, Have Fun! @@ -54,7 +53,9 @@ The example code is published under the [MIT License](LICENSE.md). The mac and windows logo icons used are under the [Creative Common License (Attr. 3 Unported)](http://creativecommons.org/licenses/by/3.0/), and are completely attributed to the artist [Bogdan Rosu](https://www.iconfinder.com/bogdanrosu). -# Contributors +## Contributors ✨ + +Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)): @@ -79,15 +80,5 @@ The mac and windows logo icons used are under the [Creative Common License (Attr -## Contributors ✨ - -Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)): - - - - - - - This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome! \ No newline at end of file diff --git a/macOS/chapter2.md b/macOS/chapter2.md index 0a3fd4a..cfff47b 100644 --- a/macOS/chapter2.md +++ b/macOS/chapter2.md @@ -53,8 +53,11 @@ Now use ![Mac](./icons/glyph-apple-20.png) + Shift Move to the top of the file with ![Mac](./icons/glyph-apple-20.png)Fn + + and from there press F2. This should navigate -your -cursor to the class named `Chapter2` because IntelliJ marks it as being _unused_. +your cursor to the class named `Chapter2` because IntelliJ marks it as being _unused_. + +> **TIP:** +> If you want to see which error your IDE has detected, check out the "Problems" pane. +> You can open this message view by using the combination ![Mac](./icons/glyph-apple-20.png) + 6 If you keep pressing ![Mac](./icons/glyph-apple-20.png)F2 it should keep cycling your cursor over the _unused_ warnings. In between the methods `jump()` and `camel()`, paste the following: diff --git a/windows/chapter1.md b/windows/chapter1.md index 2e2dd34..73651d1 100644 --- a/windows/chapter1.md +++ b/windows/chapter1.md @@ -9,7 +9,7 @@ We recommend that you follow along with each exercise in this section to reinfor Whether you are a seasoned developer or just starting with IntelliJ IDEA, this tutorial series will help you become more proficient and productive. So let's get to it! -## ![Windows](icons/glyph-windows-32.png)ctrl+c, ctrl+v +## ![Windows](icons/glyph-windows-32.png)ctrl+c, ctrl+v To copy text, select the text you want to copy using your mouse or keyboard, then press ![Windows](icons/glyph-windows-20.png)ctrl + C. To paste the copied text, move your cursor to the desired location and press ![Windows](icons/glyph-windows-20.png)ctrl + V. @@ -35,7 +35,7 @@ First press ![Windows](icons/glyph-windows-20.png)alt + h **bonus:** Try opening the Productivity Guide using ![Windows](icons/glyph-windows-20.png)Ctrl + Shift + A, then type in "Productivity Guide" in the search bar. -## Indenting, formatting with ![Windows](icons/glyph-windows-20.png)`tab`, `shift+tab` +## Indenting, formatting with ![Windows](icons/glyph-windows-20.png)tab, shift+tab Open `Fugly.java`, use selection and indent the test builder patterns properly. For this exercise, you can use shift and your arrow keys to select lines. Use Tab to indent them manually, or use ![Windows](icons/glyph-windows-20.png)ctrl + alt + l to automatically format the selected lines. @@ -44,12 +44,12 @@ Hint: When manually indenting, first use ![Windows](icons/glyph-windows-20.png)< side, then Tab the entire selection into its first indentation, decrease your selection and Tab that into its second indentation. Rinse and repeat. -## Auto-indent with ![Windows](icons/glyph-windows-20.png)`ctrl+alt+l` +## Auto-indent with ![Windows](icons/glyph-windows-20.png)ctrl+alt+l You can use this combination on specific lines, as well on entire files. Open FuglyToo.java, select a couple of lines starting with the `.withFace(face()` line and press ![Windows](icons/glyph-windows-20.png)ctrl + alt + l. Now empty your selection (select nothing), and press ![Windows](icons/glyph-windows-20.png)ctrl + alt + l again. -## Undo, Redo ![Windows](icons/glyph-windows-20.png)`ctrl+z` and ![Windows](icons/glyph-windows-20.png)`ctrl+shift+z` +## Undo, Redo ![Windows](icons/glyph-windows-20.png)ctrl+z and ![Windows](icons/glyph-windows-20.png)ctrl+shift+z In most editors, `Redo` is mapped to ![Windows](icons/glyph-windows-20.png)ctrl + y. Not so in IntelliJ. This can lead to hilarious (or super annoying) situations where you'll lose your _undo buffer_. @@ -77,7 +77,7 @@ As most people will have the reflex to press ![Windows](icons/glyph-windows-20.p Use ![Windows](icons/glyph-windows-20.png)ctrl + y, then try ![Windows](icons/glyph-windows-20.png)ctrl + shift + z to attempt and redo the revert you wish to reapply. Try ![Windows](icons/glyph-windows-20.png)ctrl + z and see what that does. Try ![Windows](icons/glyph-windows-20.png)ctrl + shift + z again now. - +` Keep this strange behavior in mind when you work in IntelliJ, or in another editor that doesn't have ![Windows](icons/glyph-windows-20.png)ctrl + y for _Redo_ :) --- diff --git a/windows/chapter2.md b/windows/chapter2.md index de62a92..e5cbb28 100644 --- a/windows/chapter2.md +++ b/windows/chapter2.md @@ -1,12 +1,12 @@ # Chapter 2 - Navigation [_Back to outline_](outline.md) -## Word-skipping ![Windows](icons/glyph-windows-32.png)`ctrl+arrows` +## Word-skipping ![Windows](icons/glyph-windows-32.png)ctrl+arrows Open `Chapter2.java`, and place your cursor in front of the word _"The"_ of the popular phrase, and tap ![Windows](icons/glyph-windows-20.png)ctrl + 8 times. You should now have your cursor at the beginning of the word _"camel"_. -## Begin/End of Line ![Windows](icons/glyph-windows-32.png)`home`, `end` +## Begin/End of Line ![Windows](icons/glyph-windows-32.png)home, end Still in `Chapter2.java`, place your cursor at the start of the popular phrase, and press end. Press home once, look at your cursors position, then press home again and see what happens. Press home one more time. @@ -16,7 +16,7 @@ home. Enjoy annoying anyone that might be watching over your shoulder. -## Begin/End of File ![Windows](icons/glyph-windows-32.png)`ctrl+home`, `ctrl+end` +## Begin/End of File ![Windows](icons/glyph-windows-32.png)ctrl+home, ctrl+end Try out ![Windows](icons/glyph-windows-20.png)ctrl + home and ![Windows](icons/glyph-windows-20.png)ctrl + end in `Chapter2.java`. Alternatively, you can accomplish the same using ![Windows](icons/glyph-windows-20.png)PgUp and PgDn. @@ -40,16 +40,20 @@ They all appear when you type CamelHumps and IntelliJ remembers your last action > Other tools, like SublimeText, have different key combinations to skip the entire word (ctrl + ), or skip based on > CamelCasing (alt + ). -## Jumping methods ![Windows](icons/glyph-windows-32.png)`alt+up,down` +## Jumping methods ![Windows](icons/glyph-windows-32.png)alt+up/down In `Chapter2.java`, place your cursor at the `theQuickBrownFoxJumpedOverTheLazyCamel` method. Press ![Windows](icons/glyph-windows-20.png)alt + a few times and see what happens. Now use ![Windows](icons/glyph-windows-20.png)alt + to go back the way you came. -## Jump to "error" ![Windows](icons/glyph-windows-32.png)`F2` +## Jump to "error" ![Windows](icons/glyph-windows-32.png)F2 Move to the top of the file with ![Windows](icons/glyph-windows-20.png)ctrl + Home and from there press ![Windows](icons/glyph-windows-20.png)F2. This should navigate your cursor to the class named `Chapter2` because IntelliJ marks it as being _unused_. +> **TIP:** +> If you want to see which error your IDE has detected, check out the "Problems" pane. +> You can open this message view by using the combination ![Windows](icons/glyph-windows-20.png)Alt + 6 + If you keep pressing ![Windows](icons/glyph-windows-20.png)F2 it should keep cycling your cursor over the _unused_ warnings. In between the methods `jump()` and `camel()`, paste the following: