Support Forums

[PSS 2015] Option: Auto-Expand Aliases

Post feature requests, product enhancement ideas, and other product-specific suggestions here. Do not post bug reports.
Forum rules
Do not post any licensing information in this forum.
User avatar
Bosparan
Posts: 197
Joined: Sun Mar 03, 2013 12:45 pm

[PSS 2015] Option: Auto-Expand Aliases

Postby Bosparan » Wed Dec 09, 2015 3:34 am

Hi Sapien Team,

When using the console, we all use aliases all day. We bind our everyday commands to simple aliases, to speed up our daily work. Aliases are a deeply ingrained habit and are obviously here to stay.
However, in a script-file, there is no room for aliases. Aliases can be altered, aliases can be removed and aliases are harder to read.
Which is why typing them in a script is one of the deadly powershell-sins in our team. This however runs contrary to our habits and focus on efficiency while on the console. Good habits in one situation become bad habits in another.

So what I'd like is an option to automatically expand aliases (both for functions and their parameters) ...
... when typing them, after pressing space or enter
... when pasting code into the editor
... when using the auto-format feature

Cheers,
Bosparan
User avatar
davidc
Posts: 4354
Joined: Thu Aug 18, 2011 4:56 am

Re: [PSS 2015] Option: Auto-Expand Aliases

Postby davidc » Wed Dec 09, 2015 9:54 am

An option to support the alias expansion in the code formatter is on our TODO list.

You can expand alias the following ways:

1. Press [Tab] after typing the alias name.
2. Press [Ctrl + Shift + A] to expand all aliases in the script.
3. Use the editor context menu to expand the alias.

David
David
SAPIEN Technologies, Inc.
User avatar
Bosparan
Posts: 197
Joined: Sun Mar 03, 2013 12:45 pm

Re: [PSS 2015] Option: Auto-Expand Aliases

Postby Bosparan » Wed Dec 09, 2015 10:33 am

Hi David,

nice to see it's coming at some point.

davidc wrote:2. Press [Ctrl + Shift + A] to expand all aliases in the script.
Oops, wasn't aware of that shortcut yet. Thanks for the info.

Cheers,
Bosparan

Return to “Wish List and Feature Requests”

Who is online

Users browsing this forum: No registered users and 2 guests