Create a Web project in Eclipse

In Eclipse web projects can be created easily. We will see how to create a simple web project having a JSP file and an HTML file. We will also see how to setup Tomcat server to run our web project. Let us look at steps to create Web project :- Step 1 :- Click on … Read more

Search text in multiple files in Eclipse

There are many times when a developer needs to search some text in the code. The developer may know the file name in which the text is to be searched or may need to search the text in the complete workspace. We will see a single way through which we can search the text in … Read more

Search files in Eclipse Workspace

Imagine you have been working on your Eclipse workspace for few months now. And you have created 20-30 projects in Eclipse having hundreds of files. Now you need to search for some file whose name you remember but do not know the location of the file in projects. Manually finding the file in all the … Read more

Debugging in Eclipse

What is Debugging? Debugging of the code helps us to understand execution of the program line by line. In debugging we can see what is value of variables after each line which can help us understand logic of code and identify errors or bugs. Debugging can be done manually using pen and paper or by … Read more

Shortcut to generate Getter and Setter in Eclipse

What are Getter and setter methods ? Getter method is to retrieve the value of instance variable while a setter method is used to set or update the value of instance variable. It is a good practice to access instance variables through these methods instead of directly accessing because we can place some pre-conditions before … Read more

Format code in Eclipse

While coding we have to deal with many loops and if conditions. Due to this, we forget to maintain proper spacing between lines and character. As result the code becomes difficult to read for some other person. So instead of organizing/formatting the code manually in Eclipse we can format the code on a single click. … Read more