How to Wrap Lines in Netbeans

How to Wrap Lines in Netbeans thumbnail
It is hard to read code that is not line-wrapped properly.

NetBeans is a powerful integrated development environment that can be used with a wide range of programming languages ranging from Java to C++, Python and even PHP. What is important about this software is its compatibility with almost every operating system available on the market. NetBeans contains a line-wrapping feature that is important for every programmer, as programs containing lines that are too long are often regarded as untidy and are harder to follow or debug.

Instructions

    • 1

      Navigate to the folder where NetBeans is installed and locate the file "netbeans.conf."

    • 2

      Open the file and add the line "-J-Dorg.netbeans.editor.linewrap=true" to the end of the lines starting with "-J."

    • 3

      Launch NetBeans and navigate to the "Options" feature under the "Tools" menu.

    • 4

      Find the tab labeled "Editor" and look for the "Line Wrap" command.

    • 5

      Select one of the included options. For example, if "After words" is selected, lines will wrap automatically after each corresponding word.

Related Searches:

References

  • Photo Credit Comstock/Comstock/Getty Images

Comments

Related Ads

Featured