将代码插入带有列表的乳胶时出现一些丰富的文本

Some abundant text when inserting code into latex with listing

我的lstset如下:

\lstset{ %
language = c++,
basicstyle = \footnotesize,
numbers = left,
numberstyle = \tiny\color{gray},
stepnumber = 2,
keepspaces = true,
numbersep = 5pt,
backgroundcolor = \color{white},
showspaces = false,
showstringspaces = false,
showtabs = false,
frame = single,
rulecolor = \color{black}
tabsize = 2,
captionpos = b,
breaklines = true,
breakatwhitespace = false,
title = \lstname,
keywordstyle = \color{blue},
commentstyle = \color{dkgreen},
stringstyle = \color{mauve},
escapeinside = {\%*}{*)},
morekeywords = {*,...}
}

然后我通过

插入我的代码
\lstinputlisting{my.cc}

但我明白了:

如何删除左边的"Tabsize"?

会不会是因为你在 rulecolor 行后面少了一个逗号?