View unanswered posts | View active topics It is currently Tue Sep 16, 2014 7:46 pm






Reply to topic  [ 5 posts ] 
Opening and editing multiple source files 
Author Message
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3221
Location: Rotterdam, The Netherlands
Post Opening and editing multiple source files
Hey there,

I am pretty new to RobotC (but quite comfortable with NXC) and I am curious as to whether it is possible to open multiple source files without needing to open multiple instances of the RobotC UI.

I am using 1.30 B4 of RobotC.

Regards,
Xander


Thu May 29, 2008 7:39 am
Profile WWW
Site Admin
Site Admin

Joined: Wed Jan 24, 2007 10:42 am
Posts: 602
Post 
As of right now, this is not possible.

This feature may be added in a later version.

_________________
Timothy Friez
ROBOTC Developer - SW Engineer
tfriez@robotc.net


Thu May 29, 2008 9:58 am
Profile
Expert
User avatar

Joined: Fri Nov 09, 2007 4:51 am
Posts: 121
Location: Hungary, Europe
Post Re: Opening and editing multiple source files
Hello mightor,

In my view of the RobotC concept does not need having more source files kept open, since you can have only one main program that is compiled and downloaded on the target brick.

You can have more include files, which do not need separate compilation. These files can be very easily edited by external editors like notepad++, a syntax-sensitive text editor (which is also useful to edit any programming language or structured / tagged textfile like html, xml). Download and information:

http://notepad-plus.sourceforge.net/uk/site.htm

http://en.wikipedia.org/wiki/Notepad++


Fri May 30, 2008 5:40 am
Profile
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post Re: Opening and editing multiple source files
mightor wrote:
I am pretty new to RobotC (but quite comfortable with NXC) and I am curious as to whether it is possible to open multiple source files without needing to open multiple instances of the RobotC UI.

hello mightor,
I really agree to this, I had the same wish, and I already posted this request. But as you will have realized, this won't come soon... :(

_________________
regards,
HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}


Fri May 30, 2008 5:49 am
Profile
Creator
Creator

Joined: Fri Feb 09, 2007 9:21 am
Posts: 615
Post 
Version 1.34 did add a useful feature to "find in files". It will search all the files used by the most recent compile for the specified search string. The output is listed in the window that displays the error messages. Clicking on one of these entries will navigate the main window to that point in the appropriate source file.

Another useful function for navigating among multiple files is the pop up menu (right click on a variable) which will offer you the ability to "go to definition" or "go to declaration" of a variable. If it is defined in a different file then this will be opened in the main window.


Wed Jun 04, 2008 5:46 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.