function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
pranab khatuapranab khatua 

salesforce Apex Editor

Hi,
I am use the developer console. But I can't get any autocomplete/any code suggession for apex code. I installed the force.com IDE for eclipse but   I am getting same problem. Is it possible  in any editor for auto complete of apex code ?
Always ThinkinAlways Thinkin
What browser are you using? It not supported at all with IE 11 and auto-complete was not working for Chrome 35. Dev Console does offer limited code complete and code suggestion. Although it's not possible to disable it, you could check the Help > Preferences just to confirm that it does show that Apex Auto-complete is true.
Alba RivasAlba Rivas
Hi Pranab,

I use sublime with mavensmate plugin. You can activate code completion there:

http://mavensmate.com/Plugins/Sublime_Text/Code_Completion

Regards
pranab khatuapranab khatua
How can I use mavensmate plugin? please explain all steps.
Alba RivasAlba Rivas
The steps would be: 

1. You have to install Sublime-Text editor first: http://www.sublimetext.com/  It has a evaluation period but after that you should purchase a license. Sublime is a great text editor, see the demo that appears in its home page and you will see. You save a lot of time programming with sublime. Anyway, try first the evaluation version and then decide.

2. For installing MavensMate plugin, you have multiple options (http://mavensmate.com/Plugins/Sublime_Text/Installation). The way I like the most is through Package Control. In addition, package control will help you to install any package.

3. Then, if you decide to proceed with package control option, the first step would be installing it: https://packagecontrol.io/installation. This code should be pasted on the sublime text console, and package control will be installed.

4. Then, use package control to install mavenmate plugin (or other plugins, there are a lot of great plugins for sublime, even you can develop yours with Python). For running Package Control, press cmd + shift + p, write "install" (for selecting install package option) and find "mavensmate" in the list.

You can connect mavensmate to your org and each time you press save on a file, the file will be automatically uploaded to the org. The autocompletion feature is not as good as others I have tried (for java for example), but it helps.

Hope it helps! Regards