Is there a document formatter extension for Solidity files within visual studio code?
I am used to formatting my code by using the (Ctrl + Shift + i) keyboard shortcut. However, when I use the same shortcut for solidity code (with .sol extension) I get a notification telling me 'There is no document formatter for solidity files installed'. Does anyone know of an extension that can do the job?
visual-studio-code solidity
add a comment |
I am used to formatting my code by using the (Ctrl + Shift + i) keyboard shortcut. However, when I use the same shortcut for solidity code (with .sol extension) I get a notification telling me 'There is no document formatter for solidity files installed'. Does anyone know of an extension that can do the job?
visual-studio-code solidity
add a comment |
I am used to formatting my code by using the (Ctrl + Shift + i) keyboard shortcut. However, when I use the same shortcut for solidity code (with .sol extension) I get a notification telling me 'There is no document formatter for solidity files installed'. Does anyone know of an extension that can do the job?
visual-studio-code solidity
I am used to formatting my code by using the (Ctrl + Shift + i) keyboard shortcut. However, when I use the same shortcut for solidity code (with .sol extension) I get a notification telling me 'There is no document formatter for solidity files installed'. Does anyone know of an extension that can do the job?
visual-studio-code solidity
visual-studio-code solidity
asked Nov 15 '18 at 8:49
faint-hearted-foolfaint-hearted-fool
63
63
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
These are the two visual studio integrations listed in the solidity documentation.
- Visual Studio Extension
- Visual Studio Code extension
I dont use visual studio so i dont know if its exactly what you are looking for but maybe it helps.
EDIT: I've been using VS and the solidity extension recommended is: Visual Studio Code extension
The extension provides:
Syntax highlighting
Snippets
Compilation of the current contract (Press F1 Solidity : Compile Current Solidity Contract), or F5
- Compilation of all the contracts (Press F1 Solidity : Compile all Solidity Contracts), or Ctrl+F5 / Cmd+F5
- Code completion for all contracts / libraries in the current file and all referenced imports
- Default project structure (solidity files needs to be in the 'src' directory, and libraries in the 'lib' directory). Libraries will follow the same structure.
- Compilation supporting EIP82 (dappfile and dependency packages)
- Support for different solidity versions (Remote and local)
- Code generation using https://github.com/Nethereum/abi-code-gen, it includes currently the default template for Nethereum service, dtos generation. (Open 'contractName.json' after compilation from the bin folder. Press F1 and press - - Solidity: Code generate from compilation output..) Please contribute more templates.
- Linting using Solhint or Solium
The first one does not work at all. And I had the first one installed. It does syntax higlighting and autocompletion. But still it doesn't do auto formatting when I use ctl+shift+i.
– faint-hearted-fool
Jan 13 at 9:12
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53315516%2fis-there-a-document-formatter-extension-for-solidity-files-within-visual-studio%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
These are the two visual studio integrations listed in the solidity documentation.
- Visual Studio Extension
- Visual Studio Code extension
I dont use visual studio so i dont know if its exactly what you are looking for but maybe it helps.
EDIT: I've been using VS and the solidity extension recommended is: Visual Studio Code extension
The extension provides:
Syntax highlighting
Snippets
Compilation of the current contract (Press F1 Solidity : Compile Current Solidity Contract), or F5
- Compilation of all the contracts (Press F1 Solidity : Compile all Solidity Contracts), or Ctrl+F5 / Cmd+F5
- Code completion for all contracts / libraries in the current file and all referenced imports
- Default project structure (solidity files needs to be in the 'src' directory, and libraries in the 'lib' directory). Libraries will follow the same structure.
- Compilation supporting EIP82 (dappfile and dependency packages)
- Support for different solidity versions (Remote and local)
- Code generation using https://github.com/Nethereum/abi-code-gen, it includes currently the default template for Nethereum service, dtos generation. (Open 'contractName.json' after compilation from the bin folder. Press F1 and press - - Solidity: Code generate from compilation output..) Please contribute more templates.
- Linting using Solhint or Solium
The first one does not work at all. And I had the first one installed. It does syntax higlighting and autocompletion. But still it doesn't do auto formatting when I use ctl+shift+i.
– faint-hearted-fool
Jan 13 at 9:12
add a comment |
These are the two visual studio integrations listed in the solidity documentation.
- Visual Studio Extension
- Visual Studio Code extension
I dont use visual studio so i dont know if its exactly what you are looking for but maybe it helps.
EDIT: I've been using VS and the solidity extension recommended is: Visual Studio Code extension
The extension provides:
Syntax highlighting
Snippets
Compilation of the current contract (Press F1 Solidity : Compile Current Solidity Contract), or F5
- Compilation of all the contracts (Press F1 Solidity : Compile all Solidity Contracts), or Ctrl+F5 / Cmd+F5
- Code completion for all contracts / libraries in the current file and all referenced imports
- Default project structure (solidity files needs to be in the 'src' directory, and libraries in the 'lib' directory). Libraries will follow the same structure.
- Compilation supporting EIP82 (dappfile and dependency packages)
- Support for different solidity versions (Remote and local)
- Code generation using https://github.com/Nethereum/abi-code-gen, it includes currently the default template for Nethereum service, dtos generation. (Open 'contractName.json' after compilation from the bin folder. Press F1 and press - - Solidity: Code generate from compilation output..) Please contribute more templates.
- Linting using Solhint or Solium
The first one does not work at all. And I had the first one installed. It does syntax higlighting and autocompletion. But still it doesn't do auto formatting when I use ctl+shift+i.
– faint-hearted-fool
Jan 13 at 9:12
add a comment |
These are the two visual studio integrations listed in the solidity documentation.
- Visual Studio Extension
- Visual Studio Code extension
I dont use visual studio so i dont know if its exactly what you are looking for but maybe it helps.
EDIT: I've been using VS and the solidity extension recommended is: Visual Studio Code extension
The extension provides:
Syntax highlighting
Snippets
Compilation of the current contract (Press F1 Solidity : Compile Current Solidity Contract), or F5
- Compilation of all the contracts (Press F1 Solidity : Compile all Solidity Contracts), or Ctrl+F5 / Cmd+F5
- Code completion for all contracts / libraries in the current file and all referenced imports
- Default project structure (solidity files needs to be in the 'src' directory, and libraries in the 'lib' directory). Libraries will follow the same structure.
- Compilation supporting EIP82 (dappfile and dependency packages)
- Support for different solidity versions (Remote and local)
- Code generation using https://github.com/Nethereum/abi-code-gen, it includes currently the default template for Nethereum service, dtos generation. (Open 'contractName.json' after compilation from the bin folder. Press F1 and press - - Solidity: Code generate from compilation output..) Please contribute more templates.
- Linting using Solhint or Solium
These are the two visual studio integrations listed in the solidity documentation.
- Visual Studio Extension
- Visual Studio Code extension
I dont use visual studio so i dont know if its exactly what you are looking for but maybe it helps.
EDIT: I've been using VS and the solidity extension recommended is: Visual Studio Code extension
The extension provides:
Syntax highlighting
Snippets
Compilation of the current contract (Press F1 Solidity : Compile Current Solidity Contract), or F5
- Compilation of all the contracts (Press F1 Solidity : Compile all Solidity Contracts), or Ctrl+F5 / Cmd+F5
- Code completion for all contracts / libraries in the current file and all referenced imports
- Default project structure (solidity files needs to be in the 'src' directory, and libraries in the 'lib' directory). Libraries will follow the same structure.
- Compilation supporting EIP82 (dappfile and dependency packages)
- Support for different solidity versions (Remote and local)
- Code generation using https://github.com/Nethereum/abi-code-gen, it includes currently the default template for Nethereum service, dtos generation. (Open 'contractName.json' after compilation from the bin folder. Press F1 and press - - Solidity: Code generate from compilation output..) Please contribute more templates.
- Linting using Solhint or Solium
edited Nov 17 '18 at 14:47
answered Nov 17 '18 at 13:10
Ian BrittoIan Britto
236
236
The first one does not work at all. And I had the first one installed. It does syntax higlighting and autocompletion. But still it doesn't do auto formatting when I use ctl+shift+i.
– faint-hearted-fool
Jan 13 at 9:12
add a comment |
The first one does not work at all. And I had the first one installed. It does syntax higlighting and autocompletion. But still it doesn't do auto formatting when I use ctl+shift+i.
– faint-hearted-fool
Jan 13 at 9:12
The first one does not work at all. And I had the first one installed. It does syntax higlighting and autocompletion. But still it doesn't do auto formatting when I use ctl+shift+i.
– faint-hearted-fool
Jan 13 at 9:12
The first one does not work at all. And I had the first one installed. It does syntax higlighting and autocompletion. But still it doesn't do auto formatting when I use ctl+shift+i.
– faint-hearted-fool
Jan 13 at 9:12
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53315516%2fis-there-a-document-formatter-extension-for-solidity-files-within-visual-studio%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown