Comments (7)
#2 Related
from dartboard.
- Set indentation (at first plugin start, for dart files)
from dartboard.
Currently it doesn't seem to be possible to set these settings per editor/contentType. It would be nice to have this set for only the Dart contentType as the formatter is quite inflexible. See dart-lang/sdk#37451
from dartboard.
Do you know if it's possible to set the indentation settings (for example TabWidth), and related settings, on a per contentType basis?
For us it would be nice to set these settings for only Dart files as the Dart formatter is very opinionated and forces 2-space indentation on every file. Thus it would be nice to just set these settings for all Dart files.
from dartboard.
Do you know if it's possible to set the indentation settings (for example TabWidth), and related settings, on a per contentType basis?
I don't think it's possible right now. But there are things in Platform that might allow to implement it efficiently. This could for example be a new PreferenceScope for a given content-type, and then this Scope could be added to other scopes used by editors. In any case, it seems more like work to do in Platform first.
from dartboard.
I opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=549447 for this.
from dartboard.
As this "feature" in the platform will likely not be addressed in the near future, I think we should show a Dialog on first access of preferences (which translates to creating or importing a new project or opening a Dart file) indicating, what the current situation is. The dialog should also give an option for the user to select if he wants to update the global settings for indentation or not.
I feel like this is a major usability issue (having the formatter & IDE not working together properly). So I will see if I find the time to work on this in the platform in the next month.
It might also be something for @lak-proddev to work on?
from dartboard.
Related Issues (20)
- Oomph task for p2 installation fails HOT 2
- Dart SDK location referenced in tests not correct on Windows HOT 1
- Flutter SDK preference control misbehaves HOT 2
- Expose opened file in the startup of the language server
- Support --route parameter
- Allow creation of Flutter projects HOT 2
- Moving forward on portability and SDK support
- Use entry point from stagehand in initial launch configuration creation
- tycho-maven-plugin:1.6.0-SNAPSHOT unresolved HOT 5
- How to configure max line length in formatter HOT 3
- Support --enable-vm-service flag for dart run HOT 3
- Project dead? HOT 3
- Core API-like feature HOT 1
- Code navigation (ctrl + clic) does not works after upgrade eclipse to 2020-06 HOT 2
- Need to provide a Dart perspective
- Eclipse preference Dart SDK location validation always false - wrong compare string HOT 4
- Not a valid SDK Location (Flutter on Windows 10) HOT 4
- installation fails due to dependency conflict with wwd HOT 5
- [Eclipse 2023-03][macOS] installation fails due to dependency not found org.eclipse.mylyn.commons.notifications.core HOT 2
- Conflict in installing on latest Eclipse version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dartboard.