Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to search in bitbucket similar to cscope(for function definition etc.,).?

Harrish Jeyabalu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 10, 2018

Hi Everyone,

I would like to know is it possible to search in bitbucket similar to cscope i.e for eg :

1.) search for function definition Calculate() 

- This would help me a lot because on every search of "calculate()", the results are showing all the places where "Calculate" is present instead is it possible to get the place where definition exists alone.?

2.) search for function/term used Calculate()

3.) search for text used Calculate. I guess the point 2 and 3 is combined now in current search. But it would be better if we are able to differentiate.?

1 answer

0 votes
Kristy
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 17, 2018

Unfortunately it is not possible to search for code in this way.

Cscope is able to do this because it is aware of the language's syntax, where as Bitbucket's search is required to work for all languages and doesn't have any language-specific functionality.

Bitbucket does try and be smart with how it shows its results, though. For example it will rank results from a class definition higher than results from an import.

For more details, see https://blog.bitbucket.org/2017/05/02/introducing-code-aware-search-for-bitbucket-cloud

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events