The default file name is code.png, something else would be better.
A better file name would be {file_name_from_where_code_is_taken}_{selected_line_range}.png
A better default save location would be the current directory.
Obviously, I know that I can manually write a name while saving, or later rename it. But some default setting would be great.
Most popular recording/screenshot softwares also use these kind of file naming:
-
CodeSnap_YYYY-MM-DD_HH-mm-SS(e.g.CodeSnap_2020-12-08_12-35-40) -
CodeSnap_1,CodeSnap_2,CodeSnap_3, and so on...
But personally, I don't really care about the date and time or something very specific like yours. So, the second option (iterative naming) is arguably better and easy enough to remember (in case you need to access it later). But yes, configurable settings would be nice for some people.
i am not taking of datetime name, rather filename(from which snap is taken) and selection line(the lines which are selected)
I think you missed my point. Let me make it clear for you: just because you need it doesn't mean other people need it too. Your suggestion is very specific for your case that other people will find it useless. I'm basically giving other alternatives that is more standardized (used by thousand softwares) and clearly useful for many people.
What i am saying is an option to set a default filename. People can then customize it according to their wish.