Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Add support for autoindentation to new preferences feature #6795

Closed
cfjedimaster opened this issue Feb 7, 2014 · 6 comments
Closed

Add support for autoindentation to new preferences feature #6795

cfjedimaster opened this issue Feb 7, 2014 · 6 comments

Comments

@cfjedimaster
Copy link
Contributor

Add the ability to disable/enable autoindentation in the new preferences support feature.

@njx
Copy link

njx commented Feb 10, 2014

@cfjedimaster - to be clear, do you mean the autoinsertion of indentation when you hit enter to create a new line?

Low pri to @dangoor

@dangoor dangoor self-assigned this Feb 10, 2014
@dangoor
Copy link
Contributor

dangoor commented Feb 10, 2014

Which behavior exactly is it you want to turn off? Is it when you type:

function foo() {|

with the cursor where the | is above, you press enter and then it indents 4 spaces?

As long as there's a CodeMirror option, this is really easy with the way Editor.js works now.

@cfjedimaster
Copy link
Contributor Author

NJ: Yes.
KD: Exactly. I blogged about this a while ago here:

http://www.raymondcamden.com/index.cfm/2012/8/22/Small-little-Adobe-Brackets-tweak--remove-Smart-Indent

The feature is Smart Indent.

On Mon, Feb 10, 2014 at 1:36 PM, Kevin Dangoor notifications@github.comwrote:

Which behavior exactly is it you want to turn off? Is it when you type:

function foo() {|

with the cursor where the | is above, you press enter and then it indents
4 spaces?

As long as there's a CodeMirror option, this is really easy with the way
Editor.js works now.

Reply to this email directly or view it on GitHubhttps://github.com//issues/6795#issuecomment-34672651
.

Raymond Camden, Web Developer for Adobe

Email : raymondcamden@gmail.com
Blog : www.raymondcamden.com
Twitter: cfjedimaster

@dangoor
Copy link
Contributor

dangoor commented Feb 19, 2014

See #6888

@dangoor
Copy link
Contributor

dangoor commented Feb 20, 2014

@cfjedimaster This has now landed in master!

@dangoor dangoor closed this as completed Feb 20, 2014
@cfjedimaster
Copy link
Contributor Author

Thank you!

On Thu, Feb 20, 2014 at 10:49 AM, Kevin Dangoor notifications@github.comwrote:

@cfjedimaster https://github.com/cfjedimaster This has now landed in
master!

Reply to this email directly or view it on GitHubhttps://github.com//issues/6795#issuecomment-35642205
.

Raymond Camden, Web Developer for Adobe

Email : raymondcamden@gmail.com
Blog : www.raymondcamden.com
Twitter: cfjedimaster

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants