shortcuts

shortcut to run concrete test

梦想的初衷 提交于 2019-11-29 07:15:51
问题 I can run the whole Junit test using: Shift + Alt + X , T But how I can run a single test? Using the mouse I click on concrete method and Run As -> Junit test anyone know shortcut for this case ? Thanks 回答1: Shift + Alt + X , T runs one test method if the caret is on the method name. 回答2: I find the " Shift - Alt - X " gives me trouble sometimes, sometimes what I think is the last executed command is not always and sometimes I end up running something I did not mean to. Also when doing TDD

Modify Windows shortcuts using Python

眉间皱痕 提交于 2019-11-28 09:22:35
How do you change a Windows shortcut using Python? e.g. from: H:\My Music\some_file.mp3 to: D:\Users\Myself\My Music\some_file.mp3 Here's another, more appropriate way to do this in Python with Winshell library: Using Python to create Windows shortcuts . In your case the code will look like: import os, winshell from win32com.client import Dispatch desktop = winshell.desktop() path = os.path.join(desktop, "some_file.mp3.lnk") target = r"D:\Users\Myself\My Music\some_file.mp3" wDir = r"D:\Users\Myself\My Music" icon = r"D:\Users\Myself\My Music\some_file.mp3" shell = Dispatch('WScript.Shell')

Pinning advertised shortcuts on the taskbar in windows 7

主宰稳场 提交于 2019-11-28 08:46:58
问题 My application launches using an advertised shortcut in the Windows Start Menu. This means the shortcut doesn't link directly to my exe, though the exe is ultimately what runs. My problem is: when I right click the shortcut in the Windows 7 taskbar and select Pin to Taskbar, and then launch my application, I end up with two icons in the taskbar. (So the running app does not re-use the existing taskbar icon.) Does anyone know how to fix this? Unfortunately, the choice of using an advertised

Eclipse Organize Imports Shortcut (Ctrl+Shift+O) is not working

喜欢而已 提交于 2019-11-28 08:03:19
Eclipse used to import missing packages when I press Ctrl + Shift + O . The shortcut key has stopped working when used in Java files but the same shortcut is working in Python files (importing missing packages). Any thoughts on how to fix the issue. Below are couple of snapshots for your reference. user2153465 To fix this issue: Go to Preferences -> General -> Keys Click on Filters... and de-select Filter uncategorized commands then Ok . Then look for the command Go To Symbol in File and select it. Then click on Unbind and then Apply and Close Ctrl + Shift + O . should now work. EDIT: Also

How to disable zoom on Ctrl+scroll in Visual Studio 2010?

喜你入骨 提交于 2019-11-28 04:26:14
Visual Studio 2010 adds a zoom setting on the bottom left of the text editor (to the left of the horizontal scroll bar) and also adopts the Ctrl +mouse scroll idiom for zooming in and out. The former is fine, but I dislike the latter as I am occasionally still holding control when I start scrolling my source code (which results in the text size radically changing and completely throwing me off whatever I was doing). How do I disable it? drharris Go to Tools->Extension manager, and search the online gallery for "wheel". Download "Disable Mouse Wheel Zoom" Or use this direct link: Disable Mouse

How do you create an application shortcut (.lnk file) in C# with command line arguments

荒凉一梦 提交于 2019-11-27 23:23:36
I've written a simple FTP based file synchronization program. The settings of which can be stored in an XML file. I want users to be able to quickly open the program using various configurations. So I set up the program to be able to read the path to a config file through command line argument. This way shortcuts can be created on the desktop based on different config files. Now I'm trying to add a feature that will automatically create the shortcut for a specific config file. I've tried using the example from this post using ShellLink.cs. And I've also tried using IWshRuntimeLibrary as

How to implement shortcut key input in Mac Cocoa App?

时光怂恿深爱的人放手 提交于 2019-11-27 20:51:02
问题 I've needed to make a global hot key input box in my Cocoa App. I know about Shortcut Recorder, but it is a very old solution. It has parts implemented using Carbon, which has been deprecated, and I can't publish my app to the Mac App Store if I use it. Is there any ready-to-use modern solution? Can anybody give me the way to make this by myself (I don't know where to start from)? 回答1: There is a modern framework named MASShortcut for implementing Global Shortcuts in OS X 10.7+. 回答2: In Mac

Can I set an environment variable for an application using a shortcut in Windows?

余生长醉 提交于 2019-11-27 11:55:46
I have a feeling I should be able add a directory to the PATH environment variable on an application-lifetime basis, but I can't find out how to do this. Is it possible to add a parameter to a Windows shortcut that appends a directory to the current value of PATH for use by the application being linked? GvS Let the shortcut execute a batch file (.cmd), that Sets the environment variable execute the app You use "START" to execute the app, this will start the app in another process, but it will copy the environment. You do not wait for the app to finish. Now you can exit the batch file. Should

Making a Windows shortcut start relative to where the folder is?

两盒软妹~` 提交于 2019-11-27 10:43:41
I have a game that uses this file structure: GAME FOLDER ->data ->data->run.bat I want to put a shortcut to run.bat in GAME FOLDER, but if I move it, or someone else installs it it won't work, because the target is wrong. Is there a way to make the target and "start in" relative to GAME FOLDER? leoj Right click on your /bat/ folder and click Create Shortcut . On Windows 7 you will get bat - Shortcut in the current directory. On Windows XP you will get Shortcut to bat . Right click on the shortcut you just created and click Properties . Change Target (under the Shortcut tab on Windows 7) to the

Wix create non advertised shortcut for all users / per machine

柔情痞子 提交于 2019-11-27 10:19:20
In WIX, how do you create a non advertised shortcut in the allusers profile? So far I've only been able to accomplish this with advertised shortcuts. I prefer non-advertised shortcuts because you can go to the shortcut's properties and use "find target". In the tutorials I've seen use a registry value for the keypath of a shortcut. The problem is they use HKCU as the root. When HKCU is used, and another user uninstalls the program (since it's installed for all users) the registry key is left behind. When I use HKMU as the root I get an ICE57 error, but the key is removed when another user