Comments (3)
Hi, @onetom!
I agree, there is a line in the source code, https://github.com/intellij-solidity/intellij-solidity/blob/master/src/main/kotlin/me/serce/solidity/ide/formatting/SolidityFormattingModelBuilder.kt#L18. And there is an issue #5.
I won't have enough time to help with formatting soon, but I'm happy to guide through the source code and the current formatting model if you or anyone else would like to help :)
from intellij-solidity.
@SerCeMan are you guys planning to take a look at this? For me, the biggest issue is that the styling guide has this indentation scheme for multi-line functions. If you give me some pointers, I can try to make the change and submit a PR.
from intellij-solidity.
Hey, @fredfortier!
No work on this is planned at the moment. Unfortunatelly, the only hint I can give you is that you are likely to need to modify the code in this package: https://github.com/intellij-solidity/intellij-solidity/blob/master/src/main/kotlin/me/serce/solidity/ide/formatting, and the relevant tests. There is also some documentation in https://www.jetbrains.org/intellij/sdk/docs/tutorials/custom_language_support/formatter.html
from intellij-solidity.
Related Issues (20)
- Alignment of expressions with ternary operator
- Autoformat moves comments one line down
- Support of custom folding regions in sol-files HOT 1
- Click on override HOT 1
- Multiline Expression Indentation
- Alignment of expressions with ternary operator inside multi-return
- Some contracts are not indexed and not found when imported. HOT 3
- function arg validation doesn't work for abi HOT 1
- #region comments are not expanded as expected
- Wrong type of slashes in import on Windows
- Named mapping support HOT 1
- Error "thread limit exceeded replacing blocked worker" HOT 6
- Ctrl+Click on struct name doesn't work in some cases
- feature request: inlay gas estimation for functions HOT 2
- Fixed-size arrays code alignment
- cmd/ctrl-click on import identifier doesn't work on npm packages HOT 6
- Ctrl+Click on IShortInterfaceName does not follow to ILongInterfaceName when importing it using `as` HOT 1
- it can't report the error after I have commented a variable HOT 1
- Got error when try to parse solidity file HOT 1
- Current version [2.4.2] not compatible with current IntelliJ [222.3345.118] HOT 3
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 intellij-solidity.