shortcuts

While searching for .pst files FOR keeps looping when it reaches a hidden shortcut folder

≡放荡痞女 提交于 2019-12-11 02:12:24
问题 The following command creates an infinite loop which is not what I want since I am iterating through files and it needs to end sometime... Here is what I have: cd C:\ FOR /R %i IN (*.pst) do @echo %i See what happens is that when it reaches AppData and finds a .pst (in AppData\Local\Microsoft\Outlook) there is a shortcut folder inside AppData\Local called "Application Data" which loops back to AppData\Local but keeps adding it's name to the address like so: %AppData%\Local\Application Data

Tag and Element shortcuts - Sublime Text 2

只愿长相守 提交于 2019-12-11 01:45:17
问题 Is there a way you can make your own shortcuts for your tags, like if I type in "li" It will automatically put in li type="square" and all I have to do is hit enter? 回答1: Have you tried to make your own snippets? Try the New Snippet command in the Tools -menu and add the following and save it: <snippet> <content><![CDATA[ <li type="square">${1:Item} ${2:} ]]></content> <tabTrigger>li</tabTrigger> </snippet> This will enter an <li> -tag in the current file if you type li and then press Tab .

Disable timeout on esc key

感情迁移 提交于 2019-12-10 23:14:57
问题 Problem I am in insert mode , and then I might type a number, and then quickly ESC , because I stopped typing so it will change to visual mode . What happens then, is that the cursor jumps, and not only that, the number on the line that I was (and I just typed) is decremented. This thing is a nightmare! What is causing this? Is this some kind of default behavior? If so, how can I disable it? Could this be a plugin causing it? Because I didn't always had this "feature". I was trying for some

Get desktop path for all administrators in C#

感情迁移 提交于 2019-12-10 16:03:14
问题 I need to create desktop shortcuts to my app for all administratos in the system. I'm using the following code to get user list. var identifier = new SecurityIdentifier(WellKnownSidType.BuiltinAdministratorsSid, null); GroupPrincipal group = GroupPrincipal.FindByIdentity(new PrincipalContext(ContextType.Machine), identifier.Value); foreach (Principal principal in group.Members) { Console.WriteLine(principal.Name); } I need somehow to get desktop path for each user. Could you suggest me

VIM Custom arrow key mappings not working with window switching?

醉酒当歌 提交于 2019-12-10 15:07:36
问题 I've been trying to create a shortcut for switching between open window splits in vim, rather than having to use ctrl+w+[arrowkey] I would prefer to just be able to use ctrl+[arrow keys]. This is what I currently have in my vimrc: map <silent> <C-v> <c-w>v map <silent> <C-Left> <c-w>h map <silent> <C-Down> <c-w>j map <silent> <C-Up> <c-w>k map <silent> <C-Right> <c-w>l The first shortcut for doing the vsplit works fine, however none of the others work. I've tried several variations of this

Resharper 5 Beta - Goto Declaration (CTRL + Click) is not working

自古美人都是妖i 提交于 2019-12-10 14:23:10
问题 In Visual Studio 2010 Beta 2 with Resharper 5 Beta, Goto Declaration (CTRL + Click) is not working. Anybody has solution for that? I tried in google but couldn't find any solution yet. 回答1: You can also try the (free) extension I wrote that makes ctrl+click invoke Go To Definition: Go To Definition (on the VS Gallery), or download it from inside Visual Studio 2010 by going to the Extension Manager and searching for it by name (or for my name). 回答2: Its a beta it was broken. They have updated

Adding his application to the “add to Home screen”/“Shortcut” section

主宰稳场 提交于 2019-12-10 10:58:47
问题 In my android application, I create shortcuts by code to some activities within my application. I do this feature by using the broadcast: intent.setAction("com.android.launcher.action.INSTALL_SHORTCUT"); sendBroadcast(intent); and that's cool, that really work! Now I would like to do something different: I have seen that some actions can "register" somewhere to be added in the Android menu, when you long press on the Home like this one: http://www.androidtapp.com/wp-content/uploads/2010/02

Generate Windows .lnk file with PHP

人盡茶涼 提交于 2019-12-10 10:11:34
问题 I'm working on a project which involves an FTP server running ProFTPd and a PHP/MySQL backend that creates accounts for users. Upon the creation of accounts, users are sent e-mails with their account details and instructions for downloading FileZilla or CyberDuck, depending on their OS, detected via user-agent string. To make things easier for novices, I thought of having .lnk files generated for FileZilla with the account logins details as parameters, so they would just have to click on the

In Sublime Text 3, how to have shortcuts for “Build and Run” and “Build only” separately like it was in Sublime Text 2?

旧街凉风 提交于 2019-12-09 17:54:09
问题 In Sublime Text 3,when we press Ctrl+Shift+B, we are given the option to either do "Build and Run" or "only Build", whereas Ctrl+B executes the previously chosen operation among the two. But I want it to be like, it should directly build and run when I press Ctrl+Shift+B and only build when I press Ctrl+B like it was in Sublime Text 2. Can someone help me out? 回答1: Addings this to your sublime-keymap should result in the expected behavior: { "keys": ["ctrl+b"], "command": "build", "args": {

Custom keyboard shortcuts

Deadly 提交于 2019-12-09 17:40:55
问题 I want my app to support keyboard shortcuts. Many devices, such as Asus Transformer have external keyboard which has Ctrl key (available on API Level 11). I've made some code, to check if Ctrl key works in emulator: @Override public boolean dispatchKeyEvent(KeyEvent event) { if(Build.VERSION.SDK_INT>10 && event.getAction()==KeyEvent.ACTION_DOWN && event.isCtrlPressed()){ String actionType="NONE"; final int keyCode = event.getKeyCode(); switch(keyCode){ case KeyEvent.KEYCODE_C: actionType =

工具导航Map