Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. How to make indentation in less time??

How to make indentation in less time??

Scheduled Pinned Locked Moved Java
csstutorialquestion
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    aesthetic crazy
    wrote on last edited by
    #1

    Is there any automated way of doing indentation in my lengthy code?? i mean is there any option available in eclipse or either in Netbeans??

    C D T Y 4 Replies Last reply
    0
    • A aesthetic crazy

      Is there any automated way of doing indentation in my lengthy code?? i mean is there any option available in eclipse or either in Netbeans??

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      aesthetic.crazy wrote:

      i mean is there any option available in eclipse

      In Eclipse there is an awesome feature that format your code properly automatically (indentation, position of brackets, spacing, ...). Without having anything selected in your editor, simply press ctrl + shift + F. If you have a piece of code selected, this will format only the selection.

      Cédric Moonen Software developer
      Charting control [v3.0] OpenGL game tutorial in C++

      1 Reply Last reply
      0
      • A aesthetic crazy

        Is there any automated way of doing indentation in my lengthy code?? i mean is there any option available in eclipse or either in Netbeans??

        D Offline
        D Offline
        David Skelly
        wrote on last edited by
        #3

        Both NetBeans and Eclipse have this feature. It's not hard to find in either IDE, a few seconds browsing the menu options will reveal its location. If you want to do this outside your IDE, Jalopy[^] is very good.

        1 Reply Last reply
        0
        • A aesthetic crazy

          Is there any automated way of doing indentation in my lengthy code?? i mean is there any option available in eclipse or either in Netbeans??

          T Offline
          T Offline
          TorstenH
          wrote on last edited by
          #4

          you can refactor your code in eclipse with a right click. There you can extract a interface or superclass, extract local variables and stuff like that. But a good design is still most efficient... regards Torsten

          I never finish anyth...

          1 Reply Last reply
          0
          • A aesthetic crazy

            Is there any automated way of doing indentation in my lengthy code?? i mean is there any option available in eclipse or either in Netbeans??

            Y Offline
            Y Offline
            Yadav Akash
            wrote on last edited by
            #5

            If in eclipse use the Format Code if u want to reformat the code writing , and if u only want to align the braces , simply select the piece u want to indent and select and press CTRL + I to indent the code.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups