customization

How to customize context menu in Visual Studio Code?

浪子不回头ぞ 提交于 2020-07-06 08:45:20
问题 Is it possible to customize context menu in Visual Studio Code ? Currently it looks like this. I need to add two more menu options to this. Something like "Go Back" and "Go Forward". Can this be done ? 回答1: Yes, an extension can add menu items to the context menu: in package.json , add a contributes.menus section. The text editor context menu is called editor/context . An example of an extension that does this is Bookmarks, which adds three context menu entries. The relevant parts of its

Oh My Zsh multiple commands with one alias

て烟熏妆下的殇ゞ 提交于 2020-06-10 02:45:16
问题 I'm using Oh My Zsh, and was wondering if there is a way to create a function or alias to run multiple commands. Just as an example, running an 'update' command will update specific gems, but not all of them. 回答1: As you've discovered, you can chain commands in a single alias using ; : alias update_my_gems="echo foo; echo bar" Alternatively, you can write a function very easily in your ~/.zshrc file: update_my_gems() { echo foo echo bar } For readability, I'd personally go for a function for

Oh My Zsh multiple commands with one alias

三世轮回 提交于 2020-06-10 02:45:10
问题 I'm using Oh My Zsh, and was wondering if there is a way to create a function or alias to run multiple commands. Just as an example, running an 'update' command will update specific gems, but not all of them. 回答1: As you've discovered, you can chain commands in a single alias using ; : alias update_my_gems="echo foo; echo bar" Alternatively, you can write a function very easily in your ~/.zshrc file: update_my_gems() { echo foo echo bar } For readability, I'd personally go for a function for

How to replace the Logon Application on Windows 10 with a Custom Application

泪湿孤枕 提交于 2020-05-26 07:23:49
问题 I'd like to make my own custom program run on windows 10 in replacement of the start screen and logon screen. Is there any way I can do this? I've currently replaced the accessibility program (accessible from the logon screen) with a command prompt, if I accidentally lock myself out (it has happened once!). I recall seeing a particular Winlogon.exe. Is this my starting point? Am I able to replace the program that windows runs with my own? Also, wrapping up, If I manage to replace this program

How to replace the Logon Application on Windows 10 with a Custom Application

时间秒杀一切 提交于 2020-05-26 07:23:02
问题 I'd like to make my own custom program run on windows 10 in replacement of the start screen and logon screen. Is there any way I can do this? I've currently replaced the accessibility program (accessible from the logon screen) with a command prompt, if I accidentally lock myself out (it has happened once!). I recall seeing a particular Winlogon.exe. Is this my starting point? Am I able to replace the program that windows runs with my own? Also, wrapping up, If I manage to replace this program

Change Jupyter notebook version 4.x+ logo

会有一股神秘感。 提交于 2020-03-17 11:15:09
问题 In IPython notebook version 2.x , you can add logo by customizing folder .ipython/profile_name/static/base/images/logo.png and it will display the custom logo that we made on the header of the notebook. In Jupyter notebook version 4.x , we know that they move directory to .jupyter/ instead i.e. .jupyter/base/ and .jupyter/custom/custom.css . However, when I try to customize default profile in ~/.jupyter/base/images/logo.png , I couldn't custom the logo anymore. The question is: How to custom

Change Jupyter notebook version 4.x+ logo

房东的猫 提交于 2020-03-17 11:13:30
问题 In IPython notebook version 2.x , you can add logo by customizing folder .ipython/profile_name/static/base/images/logo.png and it will display the custom logo that we made on the header of the notebook. In Jupyter notebook version 4.x , we know that they move directory to .jupyter/ instead i.e. .jupyter/base/ and .jupyter/custom/custom.css . However, when I try to customize default profile in ~/.jupyter/base/images/logo.png , I couldn't custom the logo anymore. The question is: How to custom

How to override search in Magento?

时间秒杀一切 提交于 2020-03-03 12:08:11
问题 My user should be able to use the search box to search by some attribute (numeric) it works. But I'd like to my customer to be able to search using separator. Example: search by : 12345678 = works great search by : 12-34-56-78 = doesn't work Which will the best way to override magento search to parse/rewrite/modify this behavior? Thank you 回答1: If you actually want to override the default search (OOP override, that is) Refer to my earlier answer. Otherwise @Anton's answer may be enough for

How to override search in Magento?

自作多情 提交于 2020-03-03 12:06:43
问题 My user should be able to use the search box to search by some attribute (numeric) it works. But I'd like to my customer to be able to search using separator. Example: search by : 12345678 = works great search by : 12-34-56-78 = doesn't work Which will the best way to override magento search to parse/rewrite/modify this behavior? Thank you 回答1: If you actually want to override the default search (OOP override, that is) Refer to my earlier answer. Otherwise @Anton's answer may be enough for

VSCode: Prevent split editor to open same file left & right

ⅰ亾dé卋堺 提交于 2020-02-18 08:20:15
问题 I'm currently using VSCode as my main editor, however, when I split the editor into 2, it opens the same file twice, like left & right (see image below). Is there any way to prevent it from opening the same file on the next editor? Currently, I have my custom settings and can be copied from here. 回答1: command name in Keybindings: workbench.action.moveEditorToNextGroup command name in Command Palette: View: Move Editor into Next Group default keybinding: Ctrl + Alt + → command name in