内置VSCode markdown preview
仅在我安装的副本上消失了。
有没有人看到过类似的东西,然后可以告诉我在哪里可以找到解决方案?
“消失”是指在按 ctrl + shift + p 后,它不会显示在上下文菜单或显示的列表中。
Markdown Preview Enhanced
并决定使用内置的markdown预览。VSCode
,并且没有什么区别:它仍然没有显示降价预览。答案 0 :(得分:0)
因此,请尝试重新安装VSCode或安装Markdown扩展程序,例如Markdown Preview Enhanced。
答案 1 :(得分:0)
在卸载扩展名import React, { useState } from "react";
import "./styles.css";
import { makeStyles } from "@material-ui/core/styles";
import { TreeItem, TreeView } from "@material-ui/lab";
import { Tooltip } from "@material-ui/core";
import ExpandMoreIcon from "@material-ui/icons/ExpandMore";
import ChevronRightIcon from "@material-ui/icons/ChevronRight";
export default function App() {
const classes = useStyles();
const [parentsClick, setParentsClick] = useState([]);
const firstLevel = [
{
id: "1",
label: "Applications",
secondLevel: [
{ id: "1a", label: "Calendar", thirdLevel: [] },
{ id: "1b", label: "Chrome", thirdLevel: [] },
{ id: "1c", label: "Webstorm", thirdLevel: [] }
]
},
{
id: "2",
label: "Documents",
secondLevel: [
{ id: "2a", label: "Oss", thirdLevel: [] },
{ id: "2b", label: "Material-UI", thirdLevel: [] }
]
}
];
const StyledTreeItem = (props) => {
if (parentsClick.includes(props.id))
return <TreeItem nodeId={props.id} label={props.label} {...props} />;
else
return (
<Tooltip title={props.label} placement="left">
<TreeItem nodeId={props.id} label={props.label} {...props} />
</Tooltip>
);
};
return (
<TreeView
className={classes.root}
defaultCollapseIcon={<ExpandMoreIcon />}
defaultExpandIcon={<ChevronRightIcon />}
>
{firstLevel.length > 0 &&
firstLevel.map((item1stLvl) => (
<StyledTreeItem
key={item1stLvl.id}
id={item1stLvl.id}
label={item1stLvl.label}
onClick={() => {
if (parentsClick.includes(item1stLvl.id))
setParentsClick(() =>
parentsClick.filter((item) => item !== item1stLvl.id)
);
else setParentsClick([item1stLvl.id, ...parentsClick]);
}}
>
{item1stLvl.secondLevel.length > 0 &&
item1stLvl.secondLevel.map((item2ndLvl) => (
<StyledTreeItem
key={item2ndLvl.id}
id={item2ndLvl.id}
label={item2ndLvl.label}
/>
))}
</StyledTreeItem>
))}
</TreeView>
);
}
const useStyles = makeStyles({
root: {
height: 240,
flexGrow: 1,
maxWidth: 400
}
});
之后,我遇到了相同的问题,并使用Markdown Preview Enhanced
通过以下方式在系统Ubuntu 20.04
上解决了此问题:
解决方案,可能会有更好的解决方法:
VSCode 1.52.0
文件的位置。它位于settings.json
。然后,我删除了文件夹~/.config/Code/User/settings.json
。我先尝试过但没有解决问题的东西:
~/.config/Code/
并不能解决问题。VSCode
并没有帮助。