Formatting code during loading file makes interface slow to receive

I am building a PWA with the help of AIStudio. As I am now going forward and having about 1700 lines in index.html I am annoyed by the constant hacking of the format function of received code can be formatted. The screen flickers for all visible text and partly refuses to keep colored output. It flickers between white and colors,where colors are seen shortly at each line of code coming in. When I copy the same file whencomplete in total to VSCode it is nicely colorful formatted for every line. What can I do to stop that behaviour?

Hi Leo,

Welcome to the Google AI Forum! :confetti_ball: :confetti_ball:

Thanks for raising this. It sounds like you’re experiencing performance and rendering issues with code formatting in AI Studio, especially with large HTML files. The flickering is likely due to how the editor handles real-time formatting as content loads.

Here are a few suggestions:

  1. Disable Auto-Formatting Temporarily: While editing large files, consider turning off auto-formatting or live preview if enabled.
  2. Split Large Files: If feasible, consider modularizing your HTML into multiple components. This improves both performance and maintainability.
  3. Modify Editor Settings: Open the command palette (Cmd/Ctrl + Shift + P) and check if there’s an option to disable real-time linting, auto-formatting, or theme switching during rendering.
  4. GPU Acceleration: Ensure that GPU acceleration is enabled in your browser, and try running AI Studio in latest Chrome version for better performance.

Let me know if the above steps helps resolve the issue.

There is a F1 command to view all key combination commands and from thatmenu. CTRL-Shift P lands me on print. Ihave no idea where these settings are the gear icon i svery bear with functions other than Feedback

  1. Neither of these things work. Disabling this formatting when file is receiving can’t be disabled while there is no such menu to lay with. Live preview seems to not help to step up speed of receiving
    2.Split files is tricky with AIStudio. I did once and that cost me a version of so. The AI ruined my app completely.
    3.C-Sh-P lands Google Print
    4.That will not do the magic. It is more some system problem. It is trying to Format at each line that comesin and ties to do that for the whole number of lines that are in. It is vaary fast in formatting, but thing kills any speed. Where I throw in a file to VS-Code it copies without a blink to format the 1700 lines there.

AIStudio is very new to me now I don’t know if there any settings possible. I see the command to format the whole file or a selection, but that is not toggling on and off.

Big mystery why this is happening!

Hi @Leo_van_der_Hoek,

The most effective way to address this is by sending detailed feedback through AI Studio’s in-product “Send Feedback” option. This goes directly to the development team for review.