ada - GNAT GPS on the fly syntax checking and getting the best out of the IDE -


i've started using gps coding ada @ work - have tips getting best out of ide? or plugins should aware of?

for example there way enable on fly syntax/type checking - of sorts in eclipse/visual studio errors underlined go?

also people's general opinions on gnat workbench compared gps?

thanks

matt

the gps not have of background syntax checking , design. idea behind gps is compiler decides code correct , code not correct. means if want know if code correct or not have compile it. on windows computer short cut key shift+f4 , compile specification or body file editing. pressing f4 compile whole project. save time using shift+f4.

another interesting feature gps uses cross-reference (xref) information when navigation through code. example, let's find places in code specific subprogram called. in gps (gnat pro), right click on subprogram interested in press find references. in gps gnat libre version don't have menu when right clicking in code. in case go navigate menu , click on find references there. if gps not find references , know subprogram used in application means xref information needs updated. may compile whole application f4 since xref information generated along binary produced. if go edit , click on key shortcuts can set short cut key generate xref information only. may find several interesting features there can set short cut key for.

the cross-reference information (xref) used refactoring (gnat pro specific functionality). works changing variable , subprogram names. make sure cross-reference information date!

code snippets in gps useful. use them writing keyword followed ctrl+o (not zero, o in orwell). see code snippets can choose between go edit , click on aliases. can create own aliases , code snippets become more productive ada software engineer.

good luck!


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -