Skip to content

Added option to strip trailing spaces on save#367

Merged
SamyPesse merged 2 commits into
CodeboxIDE:masterfrom
invokr:feature/stripspaces
May 17, 2014
Merged

Added option to strip trailing spaces on save#367
SamyPesse merged 2 commits into
CodeboxIDE:masterfrom
invokr:feature/stripspaces

Conversation

@invokr

@invokr invokr commented May 15, 2014

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread addons/cb.files.editor/editor/view.js Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ace don't already a method to do that?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sadly not, Ajax.org has written one for their own IDE (Cloud9) too: https://github.com/ajaxorg/cloud9/tree/master/plugins-client/ext.stripws

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok but can you move this into a method of the editor so that it can be used later as a command or something.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I also added an entry for it in the editor menu so that it becomes usable even when you turn the setting off.

SamyPesse added a commit that referenced this pull request May 17, 2014
Added option to strip trailing spaces on save
@SamyPesse
SamyPesse merged commit 4cd5fa8 into CodeboxIDE:master May 17, 2014
@SamyPesse

Copy link
Copy Markdown
Contributor

Perfect! Thanks 👍 🍻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants