Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse CDT functions(Function to get the line number and column number)
Eclipse CDT functions [message #1804067] Sun, 17 March 2019 07:18 Go to next message
Pooja  Kumari is currently offline Pooja KumariFriend
Messages: 5
Registered: October 2018
Junior Member
Hello Everyone,
I am interested in finding the location (line number, column number) of a given letter or word in a .cpp file. Are there any functions in CDT such that we can get Line number and Column number of every letter or word in a .cpp file? or how can I proceed?
waiting for your suggestions/responses.


Re: Eclipse CDT functions [message #1804069 is a reply to message #1804067] Sun, 17 March 2019 10:10 Go to previous message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 742
Registered: August 2014
Senior Member
Just open the file with the CDT editor, put the cursor on the location of interest and look at the status line at the bottom. There are two numbers separated by a colon. The first is line and the second is column.

See attached partial workspace capture.
index.php/fa/35081/0/
  • Attachment: Untitled.png
    (Size: 63.05KB, Downloaded 226 times)


--

Tauno Voipio
Previous Topic:Data Acquisition with C/C++ Development Tools for NI Linux Real-Time, Eclipse Edition
Next Topic:eclipse terminates with exit value 127
Goto Forum:
  


Current Time: Fri Apr 26 23:26:09 GMT 2024

Powered by FUDForum. Page generated in 0.02831 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top