简体   繁体   English

制表符、空格和输入键在 vs 代码中不起作用

[英]Tab, space and enter keys not working in vs code

when i run run flutter in vs code the enter, tab and space keys not working properly.当我在 vs 代码中运行 flutter 时,输入、制表符和空格键无法正常工作。

import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(); //my cursor is in center of the brackets
  }
}

When i press enter my cursor cannot come to the next line.当我按 Enter 时,我的 cursor 无法进入下一行。 Similarlly the tab key and space key also not working.同样,制表键和空格键也不起作用。

I had the same problem with me just a before tab was not working and I solved it just pressing ctrl+m shortcut on Windows.tab无法正常工作之前,我遇到了同样的问题,我只需按 Windows 上的ctrl+m快捷方式就解决了它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM