tree like indentation for vscode - visual-studio-code

can someone help me to find the extension that make vscode do the tree like indentation like in the picture

enabling these two options like on the pic

I found it mentioned and shown here: dart and flutter extensions:
in the settings and enable the Dart:Preview Flutter Ui Guides option
Unless you are using the Dart language you are not going to be able to get that same indent guide effect as it requires that specific syntax to parse and enable the feature to work.

on Vscode Click Code -> Preferences -> Settings
and search for Preview Bazel Workspace Custom Scripts and check it
and search for Preview Flutter Ui Guides
and Check Dart: Preview Flutter Ui Guides
and Check Dart: Preview Flutter Ui Guides Custom Tracking

Open your VS code workspace and check:
Dart: Preview Bazel Workspace Custom Scripts
Dart: Preview Flutter Ui Guides
Dart: Preview Flutter Ui Guides Custom Tracking

This tree like indentation in vscode is UI Guide for Flutter.
Method 1
First of all please check in your VS code workspace Dart Plugin is enable.
Press Ctrl + ,
In search box Type Dart:Preview Flutter Ui Guides
Turn on both options for work.

I suggest you go in the settings and enable the Dart:Preview Flutter Ui Guides option. That will make it really easy to spot the parent-child relationships in your code, which is particularly useful when you have many nested widgets in your UI files.

run the Dart: Use Recommended Settings command from the VS Code command palette (ctrl + shift + P)and dart recommended setting will be written on your setting.json file.
and open the setting.json add this on top or below the dart settings and restart VsCode
"dart.previewFlutterUiGuides": true,
"dart.previewFlutterUiGuidesCustomTracking": true,

Search and check this (for new versions)

Related

dashed-vertical-line child grouping extension in flutter code

I was watching a video about a flutter project in vs code, and I saw that the developer used an extension to group sections of widgets and its childs with a dashed-vertical-line on the left side. Does anyone know what extension is used here?
That is not an extension. This is from VS code settings. Go to settings and search for FLUTTER UI you will get two options as shown in image. Select both option and restart your vs code. You will get broken line tree as you want.

"Widget Tree View" in Android Studio Editor?

I'm using the most current version of Android Studio to develop Flutter Apps/Flutter 2.5.3.
In some projects, I can see the widget tree graphic lines in the editor, but sometimes when creating a new Flutter project it does not appear. And I'm unable to find the option to turn it on. Does anybody know the secret switch?
Thanks
Good editor settings: (see the yellow marked widget tree lines)
Bad editor settings: (no tree view... :-( )
Go to "File/Settings," then search for "Flutter" and enable "Show UI Guides for build methods":

How to disable "Run|Debug" line in vscode?

I am currently using Flutter with Dart. How do I permanently disable this annoying "Run|Debug" line in vscode?
That Run | Debug is not built-in to vscode. It must be contributed by one of your extensions. These seem like likely culprits:
Dart: Show Main Code Lens
// Whether to show CodeLens actions in the editor for quick running/debugging scripts with main functions.
Dart: Show Test Code Lens
// Whether to show CodeLens actions in the editor for quick running/debugging tests.
In case people get here because there is a Debug or Run in their package.json, that is a separate issue and answer, see https://stackoverflow.com/questions/62358131/how-to-disable-debug-from-showing-in-package-json/62368407?r=SearchResults&s=1|57.9327#62368407
Just disable Enable Code Lens in jest plugin.
It's very annoying! When you write test code, small Debug text shows on top of a test (above it method) when it fails.
During programming, it constantly shows and hides, causing lines of code move up and down a bit. It's terrible experience. Fortunately, easy to disable.
After disabling it, we still have test status feedback:
In VSC settings, search for "Pester Code Lens".
You can disable the first option.
Disable Pester Code Lens
Add this line to your settings:
"editor.codeLens": false,
Or do this in settings:
For Java Extension paste this in your settings.json file
"java.debug.settings.enableRunDebugCodeLens": false
you just open your vs Code Setting -> Text Editor -> Code Lean [Check mark this Box]

Where to find icons from VS Code autocompletion list

VS Code has many icons for auto completion list: for class/function/snippet/module/inclide/type/etc items. I want to see all these icons and use them in my open source project. Where to find them?
You can download from here
Or checkout VSC and get all icons.

color and icon preview extension in VSCode for Flutter

I'am using Visual Studio Code for Flutter Developing and i really like to have a feature that exist in Intelij IDE Which it is showing the Color of Color's Name and showing the Icon of the Icon's Name beside the code like in the picture ..
Picture
I've found many extensions but it not supporting dart ..
(Updated Answer)
These are now available in the Flutter VS Code extension and enabled by default:
(Original Answer)
This is not currently supported in the Dart/Flutter plugins for VS Code. However as a workaround the tooltips for the colours/icons should show previews in their descriptions.
To implement it in VS Code requires some supporting changes in the Dart/Flutter SDKs. If you want to be notified when there's progress on this, click the Subscribe button on https://github.com/Dart-Code/Dart-Code/issues/807 (also add a Thumbs Up if you'd really like to see it to help use prioritise open issues).