Intellisense tips like webstorm
See original GitHub issueI don’t know if Intellisense already exists, but I miss how the webstorm works. He gives tips to simplify / improve the code.
See the example below, ignore the simplicity, because I just want to show the tip that the webstorm with Intellisense brings.
Writing roughly, by a junior developer: (javascript/typescript)
const t = 'teste';
const testFn = () => {
if (t && t === 'teste') {
return true;
} else {
return false;
}
};
webstorm tip
after the tip the webstorm gave:
how do you activate something like that in monaco? or if you don’t have it, you can create a custom configuration to do this and how I would configure it and get the result suggested above by the webstorm.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Code completion | WebStorm Documentation - JetBrains
Press Ctrl+Alt+S to open the IDE settings and select Editor | General | Code Completion. · Select the Show suggestions as you type...
Read more >How to Switch from WebStorm to VS Code
How To Switch from WebStorm to VS Code. In this article, I'm not going to compare WebStorm with VS Code or share the...
Read more >Does WebStorm have intellisense like VSCode?
Does WebStorm have intellisense of function like VSCode? Yes, it does. Among the features of WebStorm you can find that.
Read more >VSCode still lags behind Webstorm in terms of intellisense ...
It feels like VSCode is a first class TypeScript/React citizen while WebStorm is the old, cheap Java variant supposed to work on every...
Read more >VSCode vs WebStorm - Robert Cooper
One thing I like about WebStorm is that it gives you hints related to any duplicated code it finds in your project which...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@GlauberF You’ll need to a) create some model markers and b) create the code action and its corresponding edit. Run this code in the Monaco Editor Playground to see a sample.
@GlauberF You need to implement this by yourself. You need to find an AST parser, you can use the one from the TypeScript project, or get another one and then you would need to walk the AST and search for this pattern
x && x=='y'
. This is something that you need to figure out and is not related to the Monaco Editor. @rcjsuen has done a fantastic job of showing you how to plug into the editor your semantic analysis, once you have implemented it.