We can easily search all the files which include that specific file using cscope gui tool. Exact option to be used for this purpose is :
....
Find files #including this file:
When I use this gui tool to search, It gives me thousands of references and all of them would be shown as page by page.
Is there any way to write all such files which includes that specific file through cscope console?
Related
I want to have a universal folder from where I can just use ctrl+p(Quick-open files by name) and get that file.
For example the universal folder is here-> folder1/folder2/templates
and I am in suppose folder3/round-719.. so from here I want to use ctrl+P and then be able to access the files from ../templates
Note: I can use snippets, but according to my use, it isn't very effective. So, it would be good to have this sort of feature.
i am trying to find if any possible configuration is available in sublime-text editor that can ignore the listing of *.pyc files in OPEN FILE DIALOG because,
its problematic and slow when Press Ctrl+O and type file name and its select file with *.pyc format. and we require to select next file to to open actual *.py file.
I tried file names in ascending order in Open file Dialog that lists *.py files first & *.pyc second. but i work with files mostly starts with a,x,y,w and that's why i require solution.
Sublime uses the underlying Open dialog of whatever operating system you're running it on, which means that it's technically up to the operating system in general to provide the capability to provide that kind of filtering.
If you're using Windows, you can change the file filter to Python, which will exclude *.pyc files. You can also enter *.py in the file name box and hit enter to get the dialog to show you only files with that extension.
On MacOS you can enter *.py in the search box in the top right of the open dialog to find files of that type. As far as I'm aware that's always going to search your whole Mac for files of that type and not just the folder that you're currently looking in, though (I don't use this particular feature of MacOS).
On Linux, well, that's going to depend on your Linux distribution in general. On my particular Linux machine, the dialog has a Search button that works similar to the one on MacOS, finding all files everywhere that match instead of just filtering the current location. Other distributions may have something similar to this or Windows.
Is there a way I could add a relative search path (relative to the current open project) for the locator tool in QtCreator? I use this tool frequently to open files in my current project. I have files of extensions other than *.qml & *.js which I would want to locate using this tool.
The locator lists all files you have referrenced in your open projects. So you could list the files e.g. in "OTHER_FILES" of your qmake project. For other buildsystems this might not work though.
You could also define a different project for the extra files and open that together with the main project using the session feature in Creator.
Or you can use locator to open the files directly by using "f path/to/file".
I'm looking for a program/application of some sort to download, that will allow me to select multiple files, and search all of them for a phrase or word, on a Windows machine. For example, I want to search for 'bubblegum' in 100 files, and any files that contain that word somewhere, I want to know what they are.
These could be a wide range of files used by programmers - .asp files, .php files, .NET files, uncompiled java files, etc.
What would you recommend?
I might be wrong, but doesn't notepad++ do this if you use "Find in File"?
If you place the files you want to search through in the same direcotry and then search for
Directory: C:\fakeplace*.*
I'm just getting acquainted with Vim's CTags functionality - and it's damn handy.
One issue I have, though, is regenerating common tags for each project.
For example - I do a fair bit of work in rails, and like to generate ctags for the whole rails framework with
alias rctags="ctags -R `bundle show rails`/../*"
The issue is I have to do this for every rails project I start up.
So, what's the standard way to automatically access a set of tags in any vim session - ideally only if the opened file satisfies a specific condition. (Eg rails ctags preloaded for .rb files, but not .py files)
Any ideas appreciated
See :help 'tags'.
You could use, for example:
set tags+=~/.rails-tags
Which would cause ~/.rails-tags to be searched for tags.
(also, on the topic of tags: it's probably useful to suffix the tags variable with ;/. This means "search for a tags file in every parent of the working directory (ex, all the files /foo/bar/tags, /foo/tags, and /tags will be searched. For example, I use: set tags=tags;/).
Why not to use plugin Indexer that was made especially for managing the ctags in Vim?
You can define your project in ~/.indexer_files like this:
[my_rails_project]
/path/to/the/needed/directory
or even
[my_rails_project]
option:ctags_params = "--languages=Ruby"
/path/to/the/needed/directory
Then every time you opened Ruby file (i.e. *.rb or *.ruby) from the directory /path/to/the/needed/directory (with subdirs, of course), your tags will be generated automatically in background process, and when you save any file from this project, the tags will be updated automatically too (again, in the background).
So, you should not care about your tags generation, it just works.
For more information, see the article: Vim: convenient code navigation for your projects, which explains the usage of Indexer + Vimprj thoroughly.