In InnoSetup there are two constants: {commonstartmenu} and {userstartmenu}, which are expanded as "C:\ProgramData\Microsoft\Windows\Start Menu" and "C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu" respectively on my PC under Windows 7.
Can I simply add "\Programs" string to them to get the path of the All Programs folder of common and user Start Menu? Is it guaranteed that All Programs folder of Start Menu is named "\Programs"? If no, how can I obtain its name?
No, you cannot assume that it is named "Programs".
{commonprograms} is the correct constant to use if you want to refer to "Programs" / "All Programs" directly.
However if you want to install more than one shortcut then it is better to use {group} and DefaultGroupName as RobeN suggested.
Related
I am working with Python 3.4.
When I use IDLE and start typing, e.g.,
my_main_folder = "C:/Us"
in the editor window, and then press Ctrl + Space, IDLE offers me all subfolders of C:, and if I press Tab, the string is completed to "C:/Users".
That means that IDLE (or Python Shell) is able to recognize a string as a path.
How to make PyCharm (Community edition) do that?
Its not able in Community Edition Pycharm. But it can be done in Professional Edition Pycharm. I would suggest you to move to Professional Edition.
Does PyCharm have autocomplete file path?
BUT,There is a work around for it in Community Edition.
Place caret in such place and press Alt+Enter -- see if you will have "Inject language or reference" option in appeared menu. If it's present -- use it and choose "File Reference" there.
NOTE 1: this option may not be available if string is empty or has less than 2 characters in it
NOTE 2: this is temp injection -- AFAIK it will be lost after IDE restart (and you will need to do it again if needed)
Otherwise: select desired file in Project View panel and use "Copy Reference" -- it will copy a file path relative to the project root -- you may only need to add leading "/"...
https://intellij-support.jetbrains.com/hc/en-us/community/posts/206574619-Autocompleting-relative-paths
After searching I found this answer:
can we tab through paths, in the same way you can in the terminal?
No, it's not posible:(
I wrote a plugin for Komodo called AutoCode that allowed me to ALT+Click on files in the Project view, and it would automatically resolve the right path
You can use 'Copy reference' in file right-click menu to copy file path relative to project root to clipboard. But this action doesn't unfortunately take resource roots into account
However, you can use CNTRL-SPACE twice and it will present a list of paths and files, example:
For a detailed description of this information see here
I use a program called Spec2xlS together with Excel 2013. When I import files to Excel using this program plug-in, the "Open" explorer always has the first alphabetical file extension selected in view, which I never use. It is annoying to always need to change it, especially if I pull up 50 files in a day. Is there any way I can change this default selection to the file type I actually need?
Thank you.
To do this in Windows 8.1, search for "default programs" on the Start screen and click or tap "Default Programs."
How can I add custom places to the "Copy to" and "Move to" option of the Nemo file manager (see picture below)? I have some special folders reserved for pdf files and I like to use the ease to move files into them via the respective options. How can I add those to the menu?
OK. I found the answer myself. Here it is:
You can simply drag and drop a folder into the sidebar.
This will make it become a "Bookmark" and show-up as a place.
It is as simple as that, but I find poorly documented.
I like to use the Find in Path function CTRL+SHIFT+F, that searches for text strings in several files.
One thing I often run into though, is that I search for something that I know exists in at least one file, I get zero results or I find just some of the files that contain the search term.
Then I realise that the Scope setting in the Find Dialog box has been set to Module or Directory for some reason rather that "Whole project" which is what I almost always want.
What fools me here is that this only seems to happen occasionally - often I'll have the scope set to Whole project like I want to, but sometimes it will be something else.
How does IntelliJ decide which scope to use?
Also, is there some setting that can be used to force IntelliJ to always select "Whole project" as the default?
Just collapse the project tab before: Command + 1 or Alt + 1
The default selection depends on the context which launched the search. If you have the project tab open with a folder/file selected it will search in that folder or the parent of that file.
To search by default just close that panel (this will make the context be the whole project) and press the search shortcut and it will be scope properly.
Not really a solution, but how to avoid using the mouse for this:
When the dialog is open, press Alth before pressing enter. This will cause the scope to be set to Whole project.
I am attempting to start a Tornado web server, but I need the Handlers to be able to import libraries from a custom path. I cannot simply add sys.path.append('..') when launching Tornado, so how do I do it?
import sys
sys.path.append('/home/user/py/lib')
To do this right you need to assign the PYTHONPATH to include the custom directories prior to the starting of the Tornado application.
The way to do this in Linux would be this:
PYTHONPATH=$PYTHONPATH:<custom path 1>:<custom path 2>:<etc>
I'm a bit rusty with Windows, but I believe in windows you would:
Windows XP
Right click 'My Computer'
Click on 'Properties'
Click on the 'Advanced' tab
Click 'Environment Variables'
In either the System or User Environment Variables locate the one
for PYTHONPATH. If one doesn't exist, create one in System. Add in
the new custom path to the PYTHONPATH. Make sure you use a ; and not
a : to separate the paths.
Windows Vista/7
Right click 'Computer' under the 'Start Button'.
Click on 'Properties'
Click on 'Advanced system settings' in the left pane
Click on the 'Advanced' tab
Click 'Environment Variables'
In either the System or User Environment Variables locate the one
for PYTHONPATH. If one doesn't exist, create one in System. Add in
the new custom path to the PYTHONPATH. Make sure you use a ; and not
a : to separate the paths.