Custom Abbreviation Mapping #6690
ShambreTaylor
started this conversation in
Enhancement
Replies: 1 comment
-
Transferring to discussions for up votes. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Feature Request: Custom Abbreviation Mapping
Is your feature request related to a problem? Please describe.
I often use custom abbreviations for various Python modules in my projects. Pylance currently supports abbreviations for some popular libraries like numpy (np) and pandas (pd), but there is no way to define my custom abbreviations.
Describe the solution you'd like
It would be helpful if Pylance allowed users to configure their custom abbreviation mappings. This could be done via a settings file, where users can define their preferred abbreviations for specific modules.
Describe alternatives you've considered
While it is possible to create custom abbreviations within individual scripts using
sys
andimportlib
, this approach is not as seamless or efficient as having Pylance recognize custom abbreviations natively.Additional context
Custom abbreviation support would enhance productivity and maintain code readability, especially in larger projects with frequently used custom modules.
Beta Was this translation helpful? Give feedback.
All reactions