Questions tagged [code-search]

16 questions
165
votes
4 answers

Replacement for Google Code Search?

Google Code Search has been incredibly valuable to me as a developer - I use it a couple times a week to see how other developers have used (usually poorly documented) APIs. It's also convenient to see the internals of some of those APIs, or to…
Nicholas Armstrong
  • 5,624
  • 2
  • 26
  • 18
8
votes
2 answers

Code fragment repository search on github.com

How can I search for code fragments on github.com? When I search for MSG_PREPARE in the repository ErikZalm/Marlin github shows up nothing. I'm using the repository code search syntax described on https://github.com/search with…
powtac
  • 37,821
  • 25
  • 107
  • 164
4
votes
1 answer

Is there a way to make TFS code search recognize the "@" symbol?

I am searching for all occurrences of an out of date email domain in my codebase on TFS. Specifically, I am searching for "@testexample.com". However, the search seems to completely ignore the "@" symbol. If I search "@testexample.com", I get all…
ChasetopherB
  • 323
  • 4
  • 18
2
votes
0 answers

fast code searching in a large number of git repositories

We have about 20000 git repositories and the number is increasing. Sometimes we want to find out which repositories have contained a keyword on any of its branches/tags. git grep works for one or several repositories, but it takes too much time in…
ElpieKay
  • 19,185
  • 5
  • 22
  • 36
2
votes
2 answers

Find all patterns used in preg_* functions in PHP code

I have around 4k PHP files. There are more than 6k preg_* functions used in the code. I need to find all patterns used in the code and extract them. My aim is to group such patterns and replace them with a named constant. I want to make a list like…
Shaunak Sontakke
  • 560
  • 4
  • 13
2
votes
2 answers

TFS CodeSearch - Search multiple Git Branches

We have a GIT Repository on our TFS 2017 OnPremise Installation (Version 15.117.26714.0) with CodeSearch installed. As per default, CodeSearch is only indexing and searching in the default Branch of the GIT Repository (as it is stated in this How…
phifi
  • 2,115
  • 1
  • 17
  • 34
1
vote
0 answers

TFS search code under path and combine scopes

I am trying to search TFS 2018 using code search feature for some text (.NET version in this case) in all config files for a given project or path but it only works without path: or proj: scope returning results from entire repository. For example…
Dean Kuga
  • 11,160
  • 7
  • 52
  • 102
1
vote
1 answer

How long is the delay before I can use TFS code search on my latest changes?

When I was trying to search through some the most latest checked in changes, I couldn't find them in the result set. The code search gives 22 founds only. While, I get a full set 38 founds using Notepad++ 'Find in Files'. Then, I specifically…
Darkato
  • 89
  • 6
1
vote
1 answer

Searching a code segment from a file

I am trying to achieve searching for bug fixes available on certain code repository. All I have is individual fix's code . I need to come up with an executable which can parse the entire file and can establish whether the fix is available or not…
0
votes
1 answer

Google code search - missed languages

This is very odd, but I don't see neither PowerShell nor XAML among supported languages http://www.google.com/codesearch/advanced_code_search ?! How can I filter results for that languages?
alex2k8
  • 39,732
  • 56
  • 158
  • 214
0
votes
2 answers

Retention policy to TFS Code Search Server (Elastic Search)

We have TFS 2017.3 with separate Code Search server. We have huge TFS DB (about 1.6TB), in the code search server we have 700GB dis space. After few weeks the disk space running out and the code search not work in the tfs. After we increase the…
Shayki Abramczyk
  • 24,285
  • 13
  • 49
  • 65
0
votes
2 answers

TFS Code Search/Work Rest API return 404

we are using TFS on-premise. TFS version: Microsoft Visual Studio Team Foundation Server Version 16.122.27409.2 (2018). We need to perform TFS source control (Code Search) According to MS API documentation this the way to use TFS REST API. Build and…
PrimeNum
  • 53
  • 6
0
votes
2 answers

Semantics based code search

We have a large number of repositories. We want to implement a semantics(functionality) based code search on those repositories. Right now, we already have implemented keyword based code search in which we crawled through all the repository files…
0
votes
1 answer

Equivalent of "Open Implementation" for C in Eclipse CDT

I have a C project on Eclipse CDT, which makes use of the OpenSSL library. I correctly configured the library and include paths, so as a result I can open declaration of functions inside the editor (I mean the .h header files) (by pressing F3, or…
scristalli
  • 2,773
  • 3
  • 27
  • 40
0
votes
4 answers

searching for multiple occurrences of variables in a method

I have a problem with cursor leakage in my Java project. Typical example: private void doSomething() throws Exception { String sql1= "some sql statement"; String sql2= "some other sql statement"; PreparedStatement ps = null; …
W_O_L_F
  • 3
  • 2
1
2