Ctrl+K or Ctrl+M are nifty shortcuts when we have to create a new variable or a new argument in a studio project. But they always default to a string datatype in the variable or argument section/panel. The developer then has to remember or check the error signs in the activity, navigate to variables or arguments panel and set the correct datatype.
A feature which allowed the user to choose the datatype when using Ctrl+K or Ctrl+M would refine / promote the use of these shortcuts.
If this feature is already available, I would definitely want to learn how to use it.
There are many activities in Uipath which creates the output variable to respective/required datatypes.
for example : Deserialize JSON Activity, Matches Activity etc
When you create a variable in “Expression Editor”, its automatically creates a variable of that type.
Refer the screenshts,
When you create a variable/Argument only in “Assign Activity” → Its default to String.
When you want to create a variable lets say a int variable using assign activity.
You can use Ctrl+K to create the variable (you already know that the variable you want is int type) but UiPath defaults it to string. But thats not what you wanted in the first place.
UiPath can easily implement a keyboard event listener when user uses Ctrl+K in given input locations/activities and allow the user to choose the datatype (in this case int) right there in the studio GUI instead of forcing to navigate to the variables panel and doing the same from there.
This same solution can be implemented to arguments Ctrl+M.