New Apex Immediate Window

apex

#1

I am new to Cloud9 , sorry for this basic question:

I am trying to use the New Apex Immediate Window, which I was expecting to work similarly to the Execute Anonymous Window in Salesforce, but I am having trouble using because the code is executed every time I hit the return key, so for instance this does not work:

List lstring = new List();

lstring.add(‘ABC’);

It gives me an error: ERROR: Variable does not exist: lstring

I cannot figure it out how to do a return that does not executes the Code so that I can keep typing more code and execute when i am done/ Also is there a way to execute highlighted?

Regards


#2

You can press shift-return to insert new line


#3

Excellent ! Thanks for the quick response… Awesome work with Cloud9 , keep up the good work :slight_smile:


#4

Also works in chat, helpful for posting code