Ask Your Question
0

The option for disabling the spaces adding around path separator, i.e., "/".

asked 2020-11-21 21:17:37 -0600

hongyi-zhao gravatar image

updated 2020-11-23 07:43:00 -0600

Hi,

When I input some pathes in wingpro like the following:

/etc/docker/daemon.json

I noticed that it will be converted to the following automatically:

/ etc / docker / daemon.json

But this is really not the result I want to have. So, I want to how I can disable the spaces adding around path separator, i.e., "/", but at the same time keep other spaces to add functions.

Regards, HY

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-11-23 07:56:00 -0600

Is this in a Python file or some other file type? It should not be adding spaces around / except outside of strings or comments in Python code. If you do want to disable this, use the Editor > Auto-Editing > Auto-Enter Spaces preference.

edit flag offensive delete link more

Comments

A python file.

I hope wing behave differently according to the specific situations as described below. For the case where "/" is an operator, for example, in 2/3, the spaces should be added automatically, otherwise, say, for my case, the path separator, don't add them.

hongyi-zhao gravatar imagehongyi-zhao ( 2020-11-23 09:39:31 -0600 )edit

Are you typing this outside of a comment or string? It shouldn't be adding spaces in a comment or string (if it is, then it's a bug) but otherwise it thinks you are entering an expression and should do auto-spacing.

Wingware Support gravatar imageWingware Support ( 2020-11-23 15:02:31 -0600 )edit

Yes. This happened when I paste some URLs into my python script.

hongyi-zhao gravatar imagehongyi-zhao ( 2020-11-28 07:48:21 -0600 )edit

If it added spaces after paste then it's not the auto-editing feature doing this. That is activated by individual keystrokes. It may be that you have one of the third party code reformatters enabled from the Editor > Auto-formatting preferences page or the Options tab in Project Properties.

Wingware Support gravatar imageWingware Support ( 2020-11-30 07:42:45 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2020-11-21 21:17:37 -0600

Seen: 9 times

Last updated: Nov 23