In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
How to set up Python shortcut keys, I believe many inexperienced people are at a loss about this. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
1. Theme
There is no doubt that Pycharm is an IDE with a powerful keyboard shortcut system, which means that anything you do in Pycharm, such as opening a file, switching editing areas, etc., can be achieved through keyboard shortcuts. Using keyboard shortcuts not only increases the speed of operation, but also looks very cool. However, if you are used to using some keyboard shortcuts, your fingers will get used to it and it will be more difficult to change. This part of the tutorial is to introduce how to customize Pycharm shortcut settings according to your habits, so that you can use them easily.
The combination and usage of basic keyboard shortcuts will not be discussed here. For more information, please refer to Configuring keyboard shortcuts or Keymap.
2. Select a shortcut key configuration scheme
This step is very simple, click the settings button in the main toolbar and click Keymap in the settings dialog box.
Select a shortcut key configuration scheme from the drop-down list on the corresponding page:
Click apply to save your changes. For example, we chose the Eclipse scheme here, so deleting the shortcut key for a row is the Ctrl+D we are used to.
3. Change the shortcut key configuration scheme.
Here we introduce how to change the configuration scheme of shortcut keys.
Imagine this: you chose the shortcut key configuration of the Emacs solution, but this configuration does not pre-define how to delete a row through the shortcut key:
Suppose you want to specify the shortcut key as Ctrl+D for this function, as follows:
(1) Click the settings button in the main toolbar and click Keymap in the settings dialog box.
(2) Select Emacs in the corresponding list.
(3) in the shortcut key function list below, expand the Editor Actions node and navigate to the Delete Line function.
(4) right-click and select Add Keyboard Shortcut from the shortcut menu
(5) enter the shortcut key combination you want in the First Stroke of the open Enter Keyboard Shortcut window:
It is important to note that when entering the expected shortcut keys, all input from the keyboard will be recognized as the user's shortcut key settings, for example, if you want to set a shortcut key combination Ctrl+D, you need to press the Ctrl and D keys at once.
If you press the wrong key, you can only use the mouse pointer to delete the wrong input, because the input Backspace from the keyboard will also be recognized by the system as a shortcut key setting.
(6) next, you need to pay attention to the warning of the system: this Ctrl+D shortcut key combination already exists, indicating that Pycharm has associated this shortcut key combination with other settings, fortunately, the previous settings are not commonly used, you can replace it, so click OK OK.
Pycharm will give you a warning when replacing:
(7) take a look at the shortcut key scheme set up again:
You will find that the configuration scheme is automatically renamed to Emacs copy at this time. This is because Pycharm does not allow users to change their predefined shortcut key configuration scheme, only to change their copy files. Click apply and close the dialog box.
Finally, test whether our changes take effect. Open a py file, position the cursor over the line to be deleted, press Ctrl+D, the line of code is deleted smoothly, and the setting change is successful.
After reading the above, have you mastered how to set up Python shortcuts? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.