Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
div
classnavigation
HTML Table
width100%
Table Row (tr)
Table Cell (td)
width33%
Align
alignleft
Previous
span
classsep
|
span
classtext
User Interface
Table Cell (td)
width33%
Align
aligncenter
Top
span
classsep
|
span
classtext
Quick Start
Table Cell (td)
width33%
Align
alignright
Next
span
classsep
|
span
classtext
Code Completion

...

Wiki Markup
{div:class=navigation}
{table:width=100%}
 {tr}
 {td:width=33%} {align:left}[Previous|User Interface] {span:class=sep}\| {span}{span:class=text}User Interface{span}{align}{td}{td:width=33%} {align:center}[Top|Quick Start] {span:class=sep}\| {span}{span:class=text}Quick Start{span}{align} {td}{td:width=33%} {align:right}[Next|Code Completion] {span:class=sep}\| {span}{span:class=text}Code Completion{span}{align} {td}
{tr}
{table}
{div}

Wiki Markup
{redirect: https://www.jetbrains.com/idea/help/intellij-idea-editor-guided-tour.html

...

|delay

...

=0}

Info

While developing in IntellIJ IDEA you will spend a bulk of your time working in the editor. That’s why it is worth knowing its basic features.

...

The editor highlights matching brackets, scope, vertical indent guides and usages of the element at the caret by default. You can change this and more in

span
classshortcut
Settings
span
classshortcut
Editor
and
span
classshortcut
Settings
span
classshortcut
Editor
Appearance
span
classshortcut
Wiki Markup
{span:class=shortcut}Settings{span}
Wiki Markup
{span:class=shortcut}Editor{span}
and
Wiki Markup
{span:class=shortcut}Settings{span}
Wiki Markup
{span:class=shortcut}Editor{span}
Wiki Markup
{span:class=shortcut}Appearance{span}
.

Two other options worth mentioning are:

  • Allow placement of caret after end of line, enabled by default. If you find this option annoying, you can disable it in the settings.
  • Show line numbers; disabled by default.

2. Saving changes

One of the greatest editor features that new users find unusual and later brilliant is how it saves changes. IntelliJ IDEA does it automatically so you don’t need to worry about it. If you decide to roll-back some of your changes, you can always do it by using Local History.

...

A definite must-know to be even more productive. Structural selection allows you to select expressions based on grammar. By pressing

span
classshortcut
Ctrl
+
span
classshortcut
W
(
span
classshortcut
Cmd
+ W
span
classshortcut
Wiki Markup
{span:class=shortcut}Ctrl{span}
+
Wiki Markup
{span:class=shortcut}W{span}
(
Wiki Markup
{span:class=shortcut}Cmd{span}
+
Wiki Markup
{span:class=shortcut}W{span}
for Mac) you keep expanding your selection (starting from the caret). And vice versa, you can shrink it by pressing
span
classshortcut
Shift
+
span
classshortcut
Ctrl
+
span
classshortcut
W
(
span
classshortcut
Shift
+
span
classshortcut
Cmd
+ W
span
classshortcut
Wiki Markup
{span:class=shortcut}Shift{span}
+
Wiki Markup
{span:class=shortcut}Ctrl{span}
+
Wiki Markup
{span:class=shortcut}W{span}
(
Wiki Markup
{span:class=shortcut}Shift{span}
+
Wiki Markup
{span:class=shortcut}Cmd{span}
+
Wiki Markup
{span:class=shortcut}W{span}
for Mac).

6. Column selection

Column selection with mouse is available when you hold

Alt
span
classshortcut
Wiki Markup
{span:class=shortcut}Alt{span}
. If you decide to use column selection by default, you can enable it via
span
classshortcut
Edit
Column Selection Mode
span
classshortcut
Wiki Markup
{span:class=shortcut}Edit{span}
Wiki Markup
{span:class=shortcut}Column Selection Mode{span}
.

7. Folding

Another neat feature of the editor is folding. You can fold and unfold fragments of code by pressing

span
classshortcut
Ctrl
+
span
classshortcut
.
(
span
classshortcut
Cmd
+ .
span
classshortcut
Wiki Markup
{span:class=shortcut}Ctrl{span}
+
Wiki Markup
{span:class=shortcut}.{span}
(
Wiki Markup
{span:class=shortcut}Cmd{span}
+
Wiki Markup
{span:class=shortcut}.{span}
for Mac).

8. Other useful actions

...

classshortcut

...

  • Move the current line of code (or selected block) via

    ...

    classshortcut

    ...

    span
    classshortcut
    Ctrl

    ...

    span
    classshortcut
    Arrows

    ...

    span
    classshortcut
    Shift

    ...

    span
    classshortcut
    Cmd

    ...

    classshortcut

    ...

    • Wiki Markup
      {span:class=shortcut}Shift{span}
      +
      Wiki Markup
      {span:class=shortcut}Ctrl{span}
      +
      Wiki Markup
      {span:class=shortcut}Arrows{span}
      (
      Wiki Markup
      {span:class=shortcut}Shift{span}
      +
      Wiki Markup
      {span:class=shortcut}Cmd{span}
      +
      Wiki Markup
      {span:class=shortcut}Arrows{span}
      for Mac).
    • Duplicate a line of code (or selected block) via

      ...

      classshortcut

      ...

      span
      classshortcut
      D

      ...

      span
      classshortcut
      Cmd

      ...

      classshortcut

      ...

      • Wiki Markup
        {span:class=shortcut}Ctrl{span}
        +
        Wiki Markup
        {span:class=shortcut}D{span}
        (
        Wiki Markup
        {span:class=shortcut}Cmd{span}
        +
        Wiki Markup
        {span:class=shortcut}D{span}
        for Mac)
      • Remove a line of code (or selected block) via

        ...

        classshortcut

        ...

        span
        classshortcut
        Y

        ...

        span
        classshortcut
        Cmd

        ...

        classshortcut

        ...

        • Wiki Markup
          {span:class=shortcut}Ctrl{span}
          +
          Wiki Markup
          {span:class=shortcut}Y{span}
          (
          Wiki Markup
          {span:class=shortcut}Cmd{span}
          +
          Wiki Markup
          {span:class=shortcut}Y{span}
          for Mac)
        • Comment or uncomment a line of code (or selected block) via

          ...

          classshortcut

          ...

          span
          classshortcut
          /

          ...

          span
          classshortcut
          Cmd

          ...

          classshortcut

          ...

          • Wiki Markup
            {span:class=shortcut}Ctrl{span}
            +
            Wiki Markup
            {span:class=shortcut}/{span}
            (
            Wiki Markup
            {span:class=shortcut}Cmd{span}
            +
            Wiki Markup
            {span:class=shortcut}/{span}
            for Mac) and

            ...

            classshortcut

            ...

            span
            classshortcut
            Ctrl

            ...

            classshortcut

            ...

            • Wiki Markup
              {span:class=shortcut}Shift{span}
              +
              Wiki Markup
              {span:class=shortcut}Ctrl{span}
              +
              Wiki Markup
              {span:class=shortcut}/{span}
              (block comment for selected code).
            • Optimize imports via

              ...

              classshortcut

              ...

              span
              classshortcut
              O

              ...

              span
              classshortcut
              Cmd

              ...

              classshortcut

              ...

              • Wiki Markup
                {span:class=shortcut}Ctrl{span}
                +
                Wiki Markup
                {span:class=shortcut}O{span}
                (
                Wiki Markup
                {span:class=shortcut}Cmd{span}
                +
                Wiki Markup
                {span:class=shortcut}O{span}
                for Mac).
              • Find in the currently opened file via

                ...

                classshortcut

                ...

                span
                classshortcut
                F3

                ...

                classshortcut

                ...

                • Wiki Markup
                  {span:class=shortcut}Alt{span}
                  +
                  Wiki Markup
                  {span:class=shortcut}F3{span}
                  (
                  Wiki Markup
                  {span:class=shortcut}F3{span}
                  to the next match rance and

                  ...

                  classshortcut

                  ...

                  classshortcut

                  ...

                  • Wiki Markup
                    {span:class=shortcut}Shift{span}
                    +
                    Wiki Markup
                    {span:class=shortcut}F3{span}
                    to the previous match). Or, replace in the currently opened file via

                    ...

                    classshortcut

                    ...

                    span
                    classshortcut
                    R

                    ...

                    span
                    classshortcut
                    Cmd

                    ...

                    classshortcut

                    ...

                    • Wiki Markup
                      {span:class=shortcut}Ctrl{span}
                      +
                      Wiki Markup
                      {span:class=shortcut}R{span}
                      (
                      Wiki Markup
                      {span:class=shortcut}Cmd{span}
                      +
                      Wiki Markup
                      {span:class=shortcut}R{span}
                      for Mac).
                    • Enable/show soft-wraps, disabled by default.
                    • Paste from stack via

                      ...

                      classshortcut

                      ...

                      span
                      classshortcut
                      Ctrl

                      ...

                      span
                      classshortcut
                      V

                      ...

                      span
                      classshortcut
                      Shift

                      ...

                      span
                      classshortcut
                      Cmd

                      ...

                      classshortcut

                      ...

                      • Wiki Markup
                        {span:class=shortcut}Shift{span}
                        +
                        Wiki Markup
                        {span:class=shortcut}Ctrl{span}
                        +
                        Wiki Markup
                        {span:class=shortcut}V{span}
                        (
                        Wiki Markup
                        {span:class=shortcut}Shift{span}
                        +
                        Wiki Markup
                        {span:class=shortcut}Cmd{span}
                        +
                        Wiki Markup
                        {span:class=shortcut}V{span}
                        for Mac).
                      • Navigate between opened tabs via

                        ...

                        classshortcut

                        ...

                        span
                        classshortcut
                        Arrows

                        ...

                        span
                        classshortcut
                        Ctrl

                        ...

                        • Wiki Markup
                          {span:class=shortcut}Alt{span}
                          +
                          Wiki Markup
                          {span:class=shortcut}Arrows{span}
                          (
                          Wiki Markup
                          {span:class=shortcut}Ctrl{span}
                          +
                          Wiki Markup
                          {span:class=shortcut}Arrows{span}
                          for Mac).
                        div
                        classnavigation
                        HTML Table
                        width100%
                        Table Row (tr)
                        Table Cell (td)
                        width33%
                        Align
                        alignleft
                        Previous
                        span
                        classsep
                        |
                        span
                        classtext
                        User Interface
                        Table Cell (td)
                        width33%
                        Align
                        aligncenter
                        Top
                        span
                        classsep
                        |
                        span
                        classtext
                        Quick Start
                        Table Cell (td)
                        width33%
                        Align
                        alignright
                        Next
                        span
                        classsep
                        |
                        span
                        classtext
                        Code Completion Wiki Markup
                        {div:class=navigation}
                        {table:width=100%}
                         {tr}
                         {td:width=33%} {align:left}[Previous|User Interface] {span:class=sep}\| {span}{span:class=text}User Interface{span}{align}{td}{td:width=33%} {align:center}[Top|Quick Start] {span:class=sep}\| {span}{span:class=text}Quick Start{span}{align} {td}{td:width=33%} {align:right}[Next|Code Completion] {span:class=sep}\| {span}{span:class=text}Code Completion{span}{align} {td}
                        {tr}
                        {table}
                        {div}