Code block structure highlighting extension - vscode-extensions

Does anyone know an extension for Visual Studio Code that highlight code blocks as in the image ?

It is built-in to vscode. Enable the setting
Editor > Guides: Bracket Pairs

Related

Formmating ejs in visual studio code

Hi, I need to indent my ejs code in visual studio, but I get this message:
"Sorry, but there is no formatter for 'ejs'-files installed"
I already installed EJS Language Support but it just colored the code, not indent.
Does anyone know how to do this in Visual studio code?
thanks.
Step 1
Click File >> Preferences >> Settings
You will get something like this
Step 2
The Textbox "search settings" type in settings.json
Click Edit in settings.json
add this in the settings.json just below
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
//Add this below
"files.assocations": {
"*.ejs": "html"
},
Reload the Visual Code Editor and you are good
try the following link:
FORMATTING “.EJS” FILE IN VS CODE (VISUAL STUDIO CODE)
In short, you may need to add this to your settings (ctrl/cmd + ,):
"files.associations": {
"*.ejs": "html"
},
Formatting EJS like HTML not work.
Ok, no longer displays an error, but generate a bad formatting.
Examples:
Other post:
Wrong indentation on EJS files with VSCode
simple code:
https://github.com/microsoft/vscode/issues/24013
see last image, form parameters:
https://www.sung.codes/blog/2018/formatting-ejs-file-vs-code-visual-studio-code
We need a plugin. "EJS Language Support" plugin it also doesn't work on formatting.

Visual Studio Code going down to line automatically

I am using Brackets at the moment i want to switch to Visual Stuido Code but some features of Brackets are very usefull.
One of them, i use the editor narrowly, Brackets going under line automatically if it is not fit the line, but Visual Studio Code does not.
And second one also is when i design a html i can see the differences in live preview, is it possible to see it in Visual Stuido Code also?
Visual Studio Code
Brackets
You want to enable the Word Wrap in Visual Studio Code.
Go to View -> Toggle Word Wrap.
Live Preview is actually possible in every editor you use. Today's devs use task automators like Gulp or Grunt, so they are not attached to specific editor like Brackets.
Using Gulp (or Grunt) you can set up a task that will watch your files for changes and then do specific actions, like reload the page, recompile Sass files etc.
You can find more here:
https://www.youtube.com/watch?v=r5fvdIa0ETk

Is it possible to enable syntax highlighting for Microsoft Visual Basic?

I am working on a very old project which needs to be updated. Because the program needs to be backwards compatible, the changes need to be made in this older IDE.
There is no built in syntax highlighting that I see. Is there a plugin or menu that I have missed?
Within VB Editor, go to Options then Editor Format and adjust colours.
There are also some 3rd party softwares out there that will enable you to edit your code with syntax highlighting.
UltraEdit Visual Basic Editor

IntelliJ Code Style Indentation Options seem to be ignored [duplicate]

I've been attempting to get my Intellij IDEA to confirm to a google-like Java standard - however both imports and manual settings seem to be ignored.
Here's how my indentations are currently set:
However my code still formats at 4 spaces, and when I reformat it goes to 4 spaces as well.
Thanks in advance!
This is the setting for your GoogleStyle scheme. But your project most likely doesn't use it. It's not enough to just select it in the combobox. You need to import this scheme into your project.
Click Manage... and Copy to Project, and it should work as expected.
Also, make sure you're setting language-spefic settings, so instead Code Style select Code Style > Java.

Intellij Live Templates in Code Complete list

If your familiar with visual studio you can select code snippets from the auto complete list. is this possible in IntelliJ
So for example if i type
for
it would show "for" and the live template "fori" in the code complete dropdown list
Turns out it is possible (unless I'm missing something) via the Registry editor:
See this answer on how to get to this editor.