Idea

Serge A avatar image
7 Likes"
Serge A suggested Matt Long commented

An option to switch off automatic closing of the quotes and parentheses

Flexsim code editor automatically inserts closing quotes and parentheses, and I find myself fighting against this feature more than getting the benefits. This video presents the most important issues I noticed:

  1. When editing an open string literal ("some string|), typing " adds two quotes, and the second one is one too many in this case. Eventually, the symbol has be deleted manually.
  2. When the cursor is placed just before the closing and balanced parenthesis, typing ) adds another one. This is not how most of the other code editors work (see Visual Studio), which simply move the cursor past the parenthesis. The extra symbol has to be deleted manually.
  3. Sometimes typing the closing ) does work as expected, but I've never figured when it does, and when it doesn't.
  4. If there is some expression to be passed as a parameter to a function, typing functionname( before the expression inserts also the closing ) before the expression, which is almost never the desired behavior.

I'd like to have an option to disable this feature completely until these use cases are polished.

code editor
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Comment

·
Matt Long avatar image
0 Likes"
Matt Long commented

We have added a Global Preference option to enable/disable automatic closing of quotes/parentheses. This will be available in the next bug fix release of FlexSim 2017.

· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Phil BoBo avatar image Phil BoBo ♦♦ commented ·

We have also added this case to the dev list to fix these particular issues with automatic quote/parentheses matching in a future release.

Thanks for pointing out these particular use cases.

1 Like 1 ·
Serge A avatar image Serge A commented ·

That was quicker than I expected. Thank you!

0 Likes 0 ·
Matt Long avatar image Matt Long Serge A commented ·

The developers look at the up votes of ideas and take those into consideration when determining what features/changes should be made to the software. Additionally, we have shared in the frustrations of the auto-insert not always working all of the time...

0 Likes 0 ·

Write a Comment

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Your Opinion Counts

Share your great idea, or help out by voting for other people's ideas.