Code2care : TechZone Apps & Tutorials

Tricks : How to use Content Assist in Eclipse IDE



Integrated Environment tools (IDEs) like Eclipse really make development fast and easy with the help of assistant tools, one of them is Content assist or Code assist.

What is Content Assist Does ?


    Its a functionality that provides a list of suggested completions for a particular string/code that is being entered. For Example. If you have typed System. and press Ctrl + Space you will get a drop-down assistant menu displaying all possibilities that you can have,

    Eclipse Content Assist Gif Demo


    Note : If you have added docs for the programming language you are working with then you probably will also see detailed descriptions of the suggested Classes, methods, variables, keywords etc.

    While you are typing you can press Ctrl+Space to get all possibilities for the partially entered string. You would see contents that are related to the Class, Interfaces, Static methods, getter setter methods , methods , variables or datatypes etc along with the return types and input parameters types if applicable.





Code Snippets/Templates


    We can also get code templates/snippets for particular code. For example if we type instanceof and press Ctrl + Space followed by pressing Enter the keyword will be replaced by the code snippet.

    Eclipse Code Snippet Gif Demo


    Lets see one more example the most commonly used for loop,

    For loop Code Snippet Gif Demo





This really helps us as developers to write code quickly and in a efficient way. This works for all major programming languages like C, C++, Java, PHP, HTML, Css, Ruby e.t.c. provided you have the appropriate language plugin and you are working in that programming language perspective.





Top




Posts related to eclipse.


1. 27 Code Snippets/Templates to Eclipse IDE Tricks

2. How to use Content Assist in Eclipse IDE : Tricks

3. How to enable Spellcheck in Eclipse Workspace

4. Java JRE Installation location Mac OS X 10.10 Yosemite

5. Parsing Data for android-21 failed unsupported major.minor version 51.0

6. Android Launch! The connection to adb is down, and a severe error has occured.

7. Eclipse like Auto Import Shortcut in Intelij IDE Android Studio

8. JavaDocs for Android SDK Eclipse IDE

9. [Solutions] Android Error in an XML file: aborting build. Eclipse SDK

10. Eclipse Error : The Eclipse executable launcher was unable to locate its companion shared library.

11. Add imports in eclipse shortcut key combinations

12. How to check installed Eclipse version 32-bit or 64-bit Mac OS X

13. How to Configure Eclipse keymap in IntelliJ IDE

14. Eclipse Failed to load the JNI shared library jvm.dll

15. Your System has Mac OS X Version 10.10. Java from Oracle requires 10.7.3 or later error

16. appcompat_v7 errors after updates to API level 21 Material Theme

17. Plug-in com.android.ide.eclipse.adt was unable to lead class Error

18. The declared package does not match the expected package Eclipse

19. incorrect line ending: found carriage return (\r) without corresponding newline (\n)

20. Android : R Cannot Be Resolved To A Variable-Error Solutions

    more...






Popular tags
android
x 175
eclipse
x 29
notepadplusplus
x 20
macosx
x 14
sharepoint
x 14
html
x 14
mac
x 13
androidstudio
x 11




1000+ C Programs     PHP Tutorial     JSON Tutorial     Swift Tutorial     India Pinocdes     About Us     Privacy Policy


Code2care © 2012-17