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
Chris Lim 14Chris Lim 14 

why can't I save code in the developer when it has errors, is there a way to upload code with errors?

KaranrajKaranraj
Chris - No you can't save code in salesforce with error. If you save your code in developer console it will build and compile your code in salesforce server, if there is any error then your change won't be saved in salesforce.If you are suing force.com IDE then you can save your code locally in your machine
Mert YALTIMert YALTI

Hi Chris;

I totally agree with Karanraj. If you REALLY need to collect your code in SF; command out entire code block and you can save it.

Regards; 

Chris Lim 14Chris Lim 14
Gentlemen,
Thank you for the answers and time.  If I could ask, do you usually save it in the developer, or do you use eclipse with the force download, or notepadd?  What is your prefered way to go about coding with apex?
Mert YALTIMert YALTI

Hi again Chris;

If you are not working at a huge project eclipse is the best, but if your project is huge eclipse can be problematic. You can use Sublime Text3 with Mavensmate addon or NotePad++ alternatively.

SublimeText3 = http://www.sublimetext.com/3

Mavensmate = http://mavensmate.com/Plugins/Sublime_Text/Installation

Notepad++ = http://notepad-plus-plus.org/download/v6.7.4.html

I hope this answer will help you.

Mert

Chris Lim 14Chris Lim 14
Mert,

It helped.  I ended up choosing a combination of using the eclipse with the plugin.  It was interesting however to check out the Sublime Text3.  Thanks for the suggestions.

-Chris