shortcut

How do I create Visual Studio shortcut files

▼魔方 西西 提交于 2019-11-28 18:05:52
In Visual Studio there is a way to have a file in another project that is a shortcut to the first so that it builds in both. How do I do that? itowlson Right-click the project, select Add > Existing Item, and in the dialog drop down the Add button and select Add As Link. This is not a direct answer but an alternative that may be worth considering in some cases. You can create a specific kind of project which can "include" a set of files in another project when it is added by reference. This is called a Shared Project which is one of the 'new project' options: (Since at least Visual Studio 2015

How to clear console in sublime text editor

不想你离开。 提交于 2019-11-28 17:11:59
How to clear console in sublime text editor. I have searched on internet too..But can't find proper shortcut for that. Please provide info MattDMo I assume you're talking about the console accessible via View -> Show Console or Ctrl ` . Unlike other answers on SO, which deal with clearing the Python console when opened from the command prompt, os.system("cls") or os.system("clear") (depending on your OS) don't work with the Sublime console. The Sublime API (version 2 or version 3 ) does not have any built-in console-clearing method, and I was unable to find any undocumented method in sublime

Code snippet or shortcut to create a constructor in Visual Studio

三世轮回 提交于 2019-11-28 16:53:44
问题 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. 回答1: 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. 回答2: If you want to see the list of all available snippets: Press Ctrl + K and then X . 回答3: Type ctor , and then press TAB twice. 回答4: For the

Can I create shorthand names for use inside cmd?

﹥>﹥吖頭↗ 提交于 2019-11-28 13:00:23
问题 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. 回答1: 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. 回答2: See Doskey /? . You could do this doskey cddesk

Open a GUI directly from desktop (Shortcut) in MATLAB environment

▼魔方 西西 提交于 2019-11-28 12:44:59
I want open a GUI directly from desktop without opening MATLAB and run it from it. When I right click on the main MATLAB code file and select Run in windows environment, MATLAB starts and after that my GUI automatically runs but I want have this with double clicking on an Icon (shortcut) o desktop. How can I do this? I don't want compile my app. My GUI contains training neural network so I can't compile it. Dev-iL What you actually need is a way to run .m files via the command line - an action which isn't specific to GUIs. A command line operation is something you can bind to a shortcut on

How can I use JScript to create a shortcut that uses “Run as Administrator”

倖福魔咒の 提交于 2019-11-28 11:25:54
I have a JScript script that runs using cscript.exe . It creates a shortcut on the desktop (and in the start menu) that runs cscript.exe with parameters to run another JScript script. It looks, in relevant part, like this: function create_shortcut_at(folder, target_script_folder) { var shell = new ActiveXObject("WScript.Shell"); var shortcut = shell.CreateShortcut(folder + "\\Run The Script.lnk"); shortcut.TargetPath = "cscript"; shortcut.Arguments = "\""+target_script_folder+"\\script.js\" /aParam /orTwo"; shortcut.IconLocation = target_script_folder+"\\icon.ico"; shortcut.Save(); } It gets

General approach to reading lnk files

孤街醉人 提交于 2019-11-28 10:32:21
Several frameworks and languages seem to have lnk file parsers (C#, Java, Python, certainly countless others), to get to their targets, properties, etc. I'd like to know what is the general approach to reading lnk files, if I want to parse the lnk in another language that does not have said feature. Is there a Windows API for this? There is not an official document from Microsoft describing lnk file format but there are some documents which have description of the format. Here is one of them: Shortcut File Format (.lnk) As for the API you can use IShellLink Interface This is an old post, but

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

ぃ、小莉子 提交于 2019-11-28 08:16:48
问题 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? 回答1: I think you would need to specify one of the Meta and M

Shortcut for selecting run configuration in Eclipse IDE

天涯浪子 提交于 2019-11-28 07:37:11
I have an Eclipse workspace with a bunch of projects. I manually created some run configurations for each project (it's necessary to pass some arguments to VM, so I can't just run it directly, e.g. using shortcut ALT + SHIFT + X , T in the specific file). Most of the time, I just use one run configuration (whereas for the first time I manually launch it using Run -> Run configurations -> (name) -> Run ). Since I configured Eclipse to always run the last run configuration (on F11 or CTRL + F11 ), it's usually enough. However, sometimes I need to switch to a different run configuration and then

How to programmatically create a shortcut using Win32

為{幸葍}努か 提交于 2019-11-28 06:23:14
I need to programmatically create a shortcut using C++. How can I do this using Win32 SDK? What API function can be used for this purpose? Try Windows Shell Links. This page also contains a C++ example . Descriptive Snippet: Using Shell Links This section contains examples that demonstrate how to create and resolve shortcuts from within a Win32-based application. This section assumes you are familiar with Win32, C++, and OLE COM programming. EDIT: Adding the code sample in case the link dies (and MSDN links do die often.) // CreateLink - Uses the Shell's IShellLink and IPersistFile interfaces