• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
The Electric Toolbox Blog

The Electric Toolbox Blog

Linux, Apache, Nginx, MySQL, Javascript and PHP articles

  • Applications
  • FCKEditor
  • Apache
  • Windows
  • Contact Us
Home / Quick Tips / Netbeans Quick Tip: How to use tabs not spaces

Netbeans Quick Tip: How to use tabs not spaces

If you are like me and you prefer to have tabs and not spaces for code indentation and are using Netbeans, it uses spaces by default. This quick little post shows how to use tabs instead.

Use tabs not spaces for code indentation in Netbeans

Go to Netbeans -> Preferences -> Editor -> Formatting on aMac
or Tools -> Options -> Editor -> Formattingon Windows

Uncheck the box that says “Expand tabs to spaces”

If you don’t like the default 8 spaces for a tab then change the “Number of spaces per indent” option as well to a more sensible number like 4.

Click “OK” and you are done.

Check Out These Related posts:

  1. Create a file in Linux
  2. Update PHP from the command line with YUM
  3. Changing the default text editor on Linux
  4. Netbeans Quick Tip: Syntax Highlighting and File Extensions

Filed Under: Quick Tips

Primary Sidebar

Categories

  • Apache
  • Applications
  • Article
  • Case Studies
  • Email Servers
  • FCKEditor
  • HTML And CSS
  • Javascript
  • Linux/Unix/BSD
  • Microsoft SQL Server
  • Miscellaneous Postings
  • MySql
  • Networking
  • Nginx Web Server
  • Offsite Articles
  • OSX
  • PHP
  • Quick Tips
  • RFC – Request for Comments
  • SilverStripe
  • VMWare
  • VPN
  • Windows
  • WordPress

Recent Posts

  • Vim Show Line Numbers
  • Add User To Group Linux
  • Chmod 777 Tutorial
  • How to Copy Directory Linux
  • Linux create user

Copyright © 2021. ElectricToolBox. All Rights Reserved.

  • Contact Us
  • Copyright Info
  • Privacy Policy
  • Sitemap