shortcuts

Programatically Pin\UnPin the folder from quick access menu in windows 10

强颜欢笑 提交于 2019-12-04 20:17:30
问题 I have a desktop application written in c#, and this application enables users to create the folder on their machine Hard drive . on windows 7 and 8, The App creates a shortcut for this folder under Favorit menu on the left side of windows Explorer window. In windows 10 there is no Favorite menu, it was replaced by Quick access menu, and if you right click on the folder you can choose to Pin folder for quick access. To do this programmatically from inside c# code, I found a .exe that can

How do I close all open tabs at once?

╄→гoц情女王★ 提交于 2019-12-04 07:23:17
问题 If I have 10 tabs opened, I have to close each one using ":q" separately. How can I close them all at once? 回答1: Shortest/simplest/fastest way would be: :qa To save work in all tabs and quit: :wqa 回答2: I often use :tabo ( :tabonly ) to close all other tabs. 回答3: That can be done with the following command (in normal or escape mode): :tabdo :q "tabdo" apparently executes the command for all the open tabs. 回答4: Adding to what fuentesjr said: :qa! Will force quit all tabs, if you don't care

Custom keyboard shortcuts

限于喜欢 提交于 2019-12-04 04:29:17
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 = "COPY"; break; case KeyEvent.KEYCODE_V: actionType = "PASTE"; break; case KeyEvent.KEYCODE_X: actionType

What is the shortcut for running java application in mac eclipse

独自空忆成欢 提交于 2019-12-03 15:22:45
问题 I get used to eclipse and know that ctrl+F9 is used for running java application in eclipse in windows. But now I switch to mac, and find that cmd+F9 is used for debug java application, so what is the short cut for running java application ? 回答1: Notice, if you keyboard has multimedia functions, such as sound level control, brightness level etc etc. Then a lot of shortcuts using the F keys, such as Cmd + Shift + F11 and Cmd + F11 will not fire the application specific shortcut, but rather the

Shortcut to Navigate back in visual studio 2010 and resharper

两盒软妹~` 提交于 2019-12-03 11:40:20
I'm just getting back to visual studio 2010 after using phpStorm (jetBrain's product) and I'm missing all the nice shortcut keys. I've installed visual studio 2010 with resharper but am still missing some of the nice features. I can't figure out how to "navigate back" in my code. For example if I'm navigating to various method definitions and then I want to navigate back to where I just was how do I do this? I believe that in phpstorm I would press Ctrl + Alt + Left to go navigate back and Ctrl + Alt + Right if I wanted to go forward. It would keep a history so I could just keep going back as

What is the shortcut for running java application in mac eclipse

时光怂恿深爱的人放手 提交于 2019-12-03 04:59:41
I get used to eclipse and know that ctrl+F9 is used for running java application in eclipse in windows. But now I switch to mac, and find that cmd+F9 is used for debug java application, so what is the short cut for running java application ? JustDanyul Notice, if you keyboard has multimedia functions, such as sound level control, brightness level etc etc. Then a lot of shortcuts using the F keys, such as Cmd + Shift + F11 and Cmd + F11 will not fire the application specific shortcut, but rather the system-wide shortcut. In that case, you will need to press fn as well, to fire the application

How to find the Target *.exe file of *.appref-ms

送分小仙女□ 提交于 2019-12-03 04:27:07
问题 I have to make a Backup of the Program running from the file *.appref-ms When i Opened the File GitHub.appref-ms using text editor i found http://github-windows.s3.amazonaws.com/GitHub.application#GitHub.application, Culture=neutral, PublicKeyToken=8f45a2159c87c850, processorArchitecture=x86 Where is the Target Pointing in the LocalDisk, Editing the PublicKeyToken Resulted in Default or Null Icon. Editing the URL Resulted in "Application Cannot Start". How is *.appref-ms Targeting the Exe???

Open Powershell in a specific directory from shortcut

核能气质少年 提交于 2019-12-03 03:28:01
问题 This sounds like it should be so simple... I must be dumb. All I want is to make a windows short-cut that opens Powershell into a specific directory: I'm using the target: %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -noexit -command {cd c:/path/to/open} Put it just spits out the command as text. 回答1: or use : powershell.exe -noexit -command "cd c:\temp " 回答2: You can also set the "Start in" shortcut field to your desired location. 回答3: Ok - you need to use the & parameter to

Vim formatting using gg=G with xml

六月ゝ 毕业季﹏ 提交于 2019-12-03 02:42:39
I have a correctly formatted xml file, and following the command given as an answer here: How can I autoformat/indent C code in vim? I am trying to auto indent my file to display correct nesting. Before I tried to use this command I set the file type to xml using :set ft=xml as the file I started with has an extension of .mm , and also :set nowrap . Here is my ~/.vimrc file: syntax on set history=1000 set smartindent set tabstop=2 set shiftwidth=2 set expandtab How come when I issue gg=G , I get a message saying 54 lines indented , yet my file remains un-nested? in case you wanna try Vim's own