shortcut

Does Windows cache the contents of .url (Internet Shortcut) files?

旧街凉风 提交于 2019-11-30 04:17:09
问题 I'm implementing a custom URL handler in .NET. To test this, I have created a few different .url files and put them on my Desktop. This generally works fine, but behaves oddly if I change the file's contents, specifically the URL= line. Doing so has no effect — the old URL continues to be opened. Renaming the file, however, works. The file looks like this: [{000214A0-0000-0000-C000-000000000046}] Prop3=19,0 [InternetShortcut] URL=myCustomScheme://some/url/pointing/somewhere IDList= All

Close all tabs, but not the window, in Sublime Text

浪尽此生 提交于 2019-11-30 01:08:49
Is there a way to close all tabs in one go in Sublime Text, but leave the window with the current project open? It is really annoying when I just want to close all open file and start the new task I have to Cmd-W them one by one. If I do Cmd-Opt-W it will close all tabs and the current project. Thanks to Alex, it turned out kind of simple, Preferences > Key Bindings > User: { "keys": ["super+shift+w"], "command": "close_all" } No need to restart Sublime, it works right away. And what's even better, no need to get used new shortcuts, you can still close Sublime window with Cmd-W after all tabs

Is there a “Find in Files” shortcut in Eclipse?

廉价感情. 提交于 2019-11-29 22:44:45
Is there a "Find in Files" shortcut in Eclipse, as there is in Visual Studio ( Ctrl + Shift + F )? I have looked in these two lists: Eclipse Shortcuts "Show All Shortcuts" shortcut: Ctrl + Shift + L . Thanks. Gordon Glas select workspace and press Ctrl - H Which dialog is selected, depends on which file type is selected in the Project Explorer view. For example, if you selected a .js file and press Ctrl - H , it will bring up the dialog with the "Javascript Search" tab selected. If you want to search all files, you can press Ctrl - F7 to select the Project Explorer view, use arrow keys to

Code snippet or shortcut to create a constructor in Visual Studio

痞子三分冷 提交于 2019-11-29 20:21:13
What is the code snippet or shortcut to create a constructor in Visual Studio? Visual Studio 2010 and C#. I've used it before, but I can't remember. Amra Type "ctor" + TAB + TAB (hit the Tab key twice). This will create the default constructor for the class you are in: public MyClass() { } It seems that in some cases you will have to press TAB twice. ANewGuyInTown If you want to see the list of all available snippets: Press Ctrl + K and then X . ssmsnet Type ctor , and then press TAB twice. For the full list of snippets (little bits of prefabricated code) press Ctrl + K and then Ctrl + X .

Create shortcut to desktop using WiX

拈花ヽ惹草 提交于 2019-11-29 19:56:43
So I have this setup project in Wix and wanted to have a shortcut on the desktop. This must be easy you might think. But that is not the case. All the code snippets found on the Internet did not work. After a few hours of struggling and reading the documentation I finally got it right, so I am sharing it with you here. Raymond Holmboe The shortcut is a non-advertised one, hope this helps someone. Remember to put the component in your feature tag. <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="DesktopFolder" Name="Desktop"> <Component Id="ApplicationShortcutDesktop" Guid="*">

Can I create shorthand names for use inside cmd?

走远了吗. 提交于 2019-11-29 18:25:01
Is it possible to make shortcuts so that I can type "cd desk" instead of "cd desktop" to change directory to the desktop? This would only work if desktop is the only folder or file within the current directory that starts with "desk" but I would really like to do this. Andre Ruebel No, you can't, but you can use the Tab key to complete the correct name. Pressing Tab multiple time cycles through the matching names existing in the current directory. See Doskey /? . You could do this doskey cddesk=cd "%userprofile%\desktop" Then type cddesk . By putting all your macros in a batch file you can

How to set shortcut to a line of code in Eclipse IDE editor

时间秒杀一切 提交于 2019-11-29 16:06:17
I'm after a feature in eclipse that allows me to allocate a shortcut to a line (say line number 55) then go somewhere else in the same file and hit the shortcut then IDE shows me the line 55. I have used this feature in Delphi IDE. Using CNTL + number keys[1,2,...,0] a shortcut to line where the curser is will be created. This shortcut only has effect within the editor and each opened file would have its own shortcuts. Is there such a feature in eclipse? Is there any plugins out there which adds this feature to eclipse? Regards, Ali jfoliveira By default there is no shortcut defined for this

How to find via Python the icon associated with a Windows file?

扶醉桌前 提交于 2019-11-29 14:36:35
I'm developing a Python script to do file management on Windows. Essentially, I want to be able to move files to another location, and create in their place a shortcut to a Python script which will do intermediate steps before opening the relocated file. I can currently move files, create functioning shortcuts, and set the shortcut icon image. The only thing I have left is to figure out how to detect the icon which is displayed for the file. -Need to set the icon for a shortcut (which points to a '.py' script) -This icon should match that of an arbitrary filetype, exe, etc, which I have the

How to get Tkinter Mac-friendly menu shortcuts (cmd+key)

…衆ロ難τιáo~ 提交于 2019-11-29 14:23:47
I am considering shortcuts for Tkinter menu labels (commands). On Macs the combination with cmd ⌘ is common. So far I have found only self.bind_all("<Control-q>", self.quit) . How to implement cmd ⌘ shortcuts? Then again, thinking about - once the app is finished - translating it to an executable file for Windows and a Mac application might cause difficulties when using cmd ⌘? What is the best way of dealing with this issue? martineau I think you would need to specify one of the Meta and M Modifiers listed at Tk Built-in Commands -- perhaps Mod1 instead of Control . You might also find this

How do I open the “My Documents” and “My Computer” folders from C#?

旧城冷巷雨未停 提交于 2019-11-29 11:31:26
I have used two GUIDs to open the folders My Computer and My Documents . Process.Start("iexplore.exe", "::{20d04fe0-3aea-1069-a2d8-08002b30309d}"); Process.Start("iexplore.exe", "::{450d8fba-ad25-11d0-98a8-0800361b1103}"); But it opens Internet Explorer and then opens the folders My Computer and My Documents . Better still would be to skip explorer entirely and just "start" the GUIDs directly: Process.Start("::{20d04fe0-3aea-1069-a2d8-08002b30309d}"); ... Using those hard coded Guid values doesn't look like the best way of achieving this. You could use the Environment.GetFolderPath function to