You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 29, 2021. It is now read-only.
I specified dart-tools on Setting to be 4 on 'Tab length' but It format all my code on 2. I tried with all values on list and the result is the same: using a 2 tab length.
I like to put spaces between square brackets and parenthesis but It's not respecting that either. For example, from this:
void abrirCarpetaConMibs() {
new Directory( Directory.current.path + PATH_MIBS )
.list( recursive: true )
.listen(( FileSystemEntity f ) {
if ( f is File ) {
if ( new RegExp( '\.mib' ).hasMatch( f .path )) {
archivosMib.add( f.path );
}
} else if ( f is Directory ) {
print( f );
}
}, onDone: () => print(new File( archivosMib[ 0 ]).readAsStringSync() ));
}
to this:
void abrirCarpetaConMibs() {
new Directory(Directory.current.path + PATH_MIBS)
.list(recursive: true)
.listen((FileSystemEntity f) {
if (f is File) {
if (new RegExp('\.mib').hasMatch(f.path)) {
archivosMib.add(f.path);
}
} else if (f is Directory) {
print(f);
}
}, onDone: () => print(new File(archivosMib[0]).readAsStringSync()));
}
The text was updated successfully, but these errors were encountered:
Dart's formatter doesn't have any options, so to speak: it enforces the Dart style guide, which is 2 space indents.
Bob Nystrom, the person behind the Dart style guide and dartfmt, hangs out at https://www.dartlang.org/mailing-list -- if you manage to convince him to make indentation configurable, I'll update the plugin so that it checks Atom's indentation level and then utilizes that.
I specified dart-tools on Setting to be 4 on 'Tab length' but It format all my code on 2. I tried with all values on list and the result is the same: using a 2 tab length.
I like to put spaces between square brackets and parenthesis but It's not respecting that either. For example, from this:
to this:
The text was updated successfully, but these errors were encountered: