-
Book Overview & Buying
-
Table Of Contents
Magento 2 Development Cookbook
By :
Writing good code starts with a good development environment. An Integrated Development Environment (IDE) is the main part of a good development environment. NetBeans is a free and open source PHP editor that can be used for Magento development. In this recipe, we will set up a Magento 2 project in NetBeans.
Install the latest version of NetBeans IDE on your computer. You can download it from the following URL:
https://netbeans.org/downloads/
For PHP development, you need to download the HTML5 & PHP bundle.

/var/www/html/magento2/)
When you are working with a version control system like GIT, it is recommended that you check the checkbox. Put NetBeans metadata into a separate directory. If not checked, a .nbproject folder is created in your Magento root, and you don't want to have that folder in your version control system. Another possibility is to add the .nbproject folder in the .gitignore file.
index.phpThe settings are shown in the following screenshot:

In this recipe, we used the free code editor NetBeans, but there are also some other good alternatives on the market, such as:
Change the font size
Change margin width
Change background colour