пятница, 8 июня 2012 г.

Code Search Google / * what's new?

Dmitry Barashev, Google engineer of St. Petersburg.



' In what kind of line is determined by this method? . well, here it is! . And where to find it? . import com. example. *;. Well, who does that? '.


It is known that a significant portion of their time a programmer spends reading the code, his or someone else. Typically, reading is not limited to one file. Required to find the file, which defines a particular class or function that is required to find the desired line of code, and so on. When large amounts of source code, this task becomes difficult, and programmers are always dreaming of that search and navigate through the code was easier to. For sources on the local labor car, you can use the full power of modern development environments, but that view open source, which lies in large quantities in the repositories and archives on the network, until recently, was not so easy.

we have updated. Google Code Search. Adding new features to improve search and navigation through the code. The first of these is to display the structure of code written in Java, C, C, C. The structure is shown to the left of the text file in a new tab next to the bookmark. 'Files '.






The second added feature allows you to poke in the arm. include. or. import. the code in Java, C, C, or Python, and go straight to the imported file, if it is, of course, is somewhere near the current. And if not there, but somewhere in a third-party library, or, say, in the headings of the core Linux, then we will search a file with that name around the indexed code.






But what if you successfully imported a lot of files (for example, by. import com. example. *;. in Java), and it is simply impossible to guess where is the class you want? . class:. and. function:. That allow you to apply. regular Expressions. Only the names, respectively, classes and functions. Together with the operator. package:. and a new radio button. ' Search. '. To narrow the search to the contents of the specified archive or repository, it's a great way to quickly find what you need. Compare, for example,. Shell results. around the index and the results. Search Class Shell in SWT package.

We continue to improve Google Code Search, and look forward to your feedback in our. discussion group.

Комментариев нет:

Отправить комментарий