Android Studio "Search Everywhere" feature not searching in code files [closed] - android-studio

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
"Search everywhere" feature in Android Studio is not finding strings in code files. Why is it not able to find a string literal or a variable name?
Irrefutable photographic evidence:
What am I doing wrong?

"Search Everywhere" is generally looking for the following things:
Class/Module names
Function names
File names
Database names
Configuration options named similarly
It's not suitable for finding a string literal or a variable based in hundreds of lines of code which may have similar literals available to it.
For that, I'd recommend either "Find in Path", or "Symbol", which is CTRL + ALT + SHIFT + N or Command + Alt + O.

Related

How to create new file in VIM terminal(shell?) [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I am working on CURRENTTEXT.txt in vim and would like to make a NEWTEXT.txt on that window.
:vs /space/where/I/want/to/store/new/file
Now I get VIM terminal? shell? on the one side of the window.
make NEWTEXT.txt
but fails
Vim, though it's a text editor, has quite a rich set of commands for creating and managing multiple "windows".
:vnew <filename> creates a vertically-split new window and opens the file. :vnew by itself merely creates a blank vertical-split window.
There are many controls available for moving and resizing them, jumping between them, changing the direction of the split... it's impressive.
Section 6 of the Vim Frequently Asked Questions talks about opening and editing multiple existing files and the Vim Wiki talks about all sorts of things, including using vnew.
When I'm really digging into a code project I'll have several splits open, sometimes to separate parts of the same file, sometimes diffing two or three files and merging parts of them, sometimes looking at the hexdump of one next to the text version. It's all in Vim's documentation and online help.

Saving File without an extension [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
We have a system that creates files that are imported into Oracle. The files have the naming convention...
Filename.0000
Where the numbers are incremented with each export. So one file might be filename.4357 and the next file will be filename.4358.
I have managed to import the file into a spreadsheet as a comma delimited file where I then carry out some cleansing of the file.
I then want to save the file back to this unusual type .0000 but I can only seem to save it as Excel, CSV, TXT, PDF etc.
Does anyone have any ideas ? Thank you in advance.
Nothing yet
Save the file as a txt file and close it. Then rename it in Windows Explorer.
You can also do that with VBA. Use the NAME command to rename it to a file name with the desired extension.
https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/name-statement

How to remove only comments from this code snippet using vim? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to remove all comments from the following code snippet using vim. Please help me in this.
int main()
{
Computer compute;
// To create an 'instance' of the class, simply treat it like you would
// a structure. (An instance is simply when you create an actual object
// from the class, as opposed to having the definition of the class)
compute.setspeed ( 100 );
// To call functions in the class, you put the name of the instance,
// a period, and then the function name.
cout<< compute.readspeed();
// See above note.
}
:g/<Pattern>/d
It will delete all lines which match the <Pattern>. e.g.
:g/\s*\/\//d
will delete all lines which has first two non-whitespace character as //.
There is several way to do this.
The easiest is probably to use a plugin like NERDCommenter http://www.vim.org/scripts/script.php?script_id=1218
If you don't want to install things, then you can use the visual mode:
- Ctrl + V to get into column visual mode
- Select the //
- then x
You can also use a macro with qa then delete the // of the first line, close the recording with q, and replay the macro with #a.
Finally, if you are a regex fan, then you can do this : :g/\s*\/\//d

How to search word in linux terminal [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
I have used terminal window for long time, There is a lot of stdout prints. Here I need command to search some word in history of linux terminal(stdout). like find option in text document.
To search through the commands you have executed run the following command
history |grep 'your search word goes in here'
In case you are using bash, you can also open the .bash_history file with any standard text editor and operate on it.
Well, i use screen for running the linux terminal.
There you can just do ctrl + a, followed by either / or ? and then the string to search in the stdout.
http://serverfault.com/questions/106388/screen-setup-tips
Check out the link to learn about screen, will make your life simpler!! :-)

How to download all subtitles from Opensubtitles.org in a specific language? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
Excuse me if this post is not related to this forum, but I couldn't find any other place to ask my question. It would be appreciated if you introduce me a suitable place for this post.
By the way, I am trying to download all the subtitles from Opensubtitles.org in a specific language (say English) and find their translations in another language (say Arabic). I tried wget, but I couldn't download anything useful from this site. (I need .srt, .zip and .txt files)
Can everyone help me?
Bests.
Downloading everything individually will put an unnessesary load on their servers. Better use something like http://opus.lingfil.uu.se/OpenSubtitles.php
The download link is something like:
http://dl.opensubtitles.org/en/download/sub/4617044
Where 4617044 is the ID of the subtitle. You can use this URL with wget to download it, but it won't have the correct filename.
Alternatively, you can use the XML-RPC api to search and download subtitles.

Resources