Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® Software > Syntax highlighting, reference and dependency finding and refactoring. How I did it.

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Syntax highlighting, reference and dependency finding and refactoring. How I did it.
Moderator:
JFMD

Post Reply
Follow this topic



Syntax highlighting, reference and dependency finding and refactoring. How I did it.

SpiderKenny posted on 03 Oct 2012 1:46 AM PST
Top Contributor
83 Forum Posts

 I really like Creator. I am a big fan of it and use it daily. It is a very good quality product in my humble opinion.

However the developer teams have concentrated on core functionality, so some features that we are used to in other products like Netbeans, Eclipse or Visual Studio are not presently available. I'm sure they'll come in time. 

Some of the features I would like to have available are things like:

  • Code Browser (methods and members)
  • Refactoring
  • 'Find All references' for members and methods.
  • 'Jump to Declaration' for members, methods and #DEFINEs
  • etc

 

Add in to the mix, the fact that my main workspace just now contains a bootloadable project and a bootloader. In this case, this intrduces a bug where Creator contantly re-reads the bootloader.hex file from disc, continously, over and over again. This cuases a bit of cludgyness when editing, with the cursor occasionally being slow or jumpy, and an overall sluggishness. This is on an 8-core Intel machine too.

So anyway, I happen also to have Visual Studio 2010 installed, so here's what I did to make a nice smooth editing environment.

I created a new 'empty' project in VS2010 and imported all the .c and .h files from my Creator workspace. I did NOT select the option to 'copy' them to the VS Project directory - thus they are edited 'in place' rather than being copied. I open the project in Creator and the VS2010 project at the same time, and close all the files in Creator.

Visual Studio does a good job of analyzing all the files and finding all the references, and does a great job of syntax highlighting, code folding etc. All the features like refactoring, finding references, jumping to definitions etc etc all work really well. 

When I'm done editing and need to build the project I just ALT-TAB back to Creator and hit the build button. Creator automatically picks up all the changes without complaint and builds perfectly. Of course if there are any errors in the code, creator tells you which file and line and you can quickly locate the same line in the VS2010 project. Of course you cannot build or debug from withing VS2010 - but it makes a great editor and it's only an ALT-TAB away from all the debugging and build options you need inside creator.

Hope this helps.

 




Re: Syntax highlighting, reference and dependency finding and refactoring. How I did it.

H L posted on 03 Oct 2012 03:46 AM PST
Top Contributor
679 Forum Posts

 I use ultraedit, best editor ever used. highly recommended.



Re: Syntax highlighting, reference and dependency finding and refactoring. How I did it.

willemite posted on 03 Oct 2012 08:16 PM PST
Top Contributor
50 Forum Posts

 Yes, thanks.

There are a few editors that will even let you use autocomplete (intellisense style). I for one don't program often enough or have a good enough memory to recall all the API functions.



Re: Syntax highlighting, reference and dependency finding and refactoring. How I did it.

SpiderKenny posted on 04 Oct 2012 01:58 AM PST
Top Contributor
83 Forum Posts

 Yeah - VS2010 is an expensive solution, but I had it anyway.

Autocomplete works in VS2010 for most things in the project :-)



Re: Syntax highlighting, reference and dependency finding and refactoring. How I did it.

TSCOTT.PHOENIX posted on 26 Feb 2013 01:39 PM PST

1 Forum Post

 I use Eclipse in the same manner as how you are using VS.  To be honest, I'm a bit surprised that Cypress hasn't jumped on board with using Eclipse for their code editor.  If you look at similar tools from Altera and Xilinx, you'll quickly see that they are both are using Eclipse-based editors.  While I admit that it took me a while to get used to Eclipse, after I picked up on the shortcuts and keys, I really can't live without it.

Just my $0.02.

--tim

 






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20