TeXiFy-IDEA icon indicating copy to clipboard operation
TeXiFy-IDEA copied to clipboard

Image ending in `.JPG` missing false positive

Open jojo2357 opened this issue 3 months ago • 4 comments

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version

Compiled from 04d73ad09d8cd9c73c04ba19111d2c35859bc345

Operating System

The usual

What I did (steps to reproduce)

Project structure like so:

|
| - main.tex
| - picture.JPG

main.tex

\documentclass[11pt]{article}
\usepackage{graphicx}
\usepackage{float}

\begin{document}
\begin{figure}[H]
    \centering
    \includegraphics[width=\textwidth]{picture}
\end{figure}
\end{document}

When adding .JPG to the \includegraphics, I then get a warning saying I dont need the extension.

changing the ext to .jpg is also a viable fix, but I shouldnt need to since it all compiles.

jojo2357 avatar May 03 '24 05:05 jojo2357

Also just realized that Intellisense does not suggest picture.JPG but will suggest picture.jpg.

jojo2357 avatar May 03 '24 05:05 jojo2357

Intellisense is a Visual Studio feature, I believe

PHPirates avatar May 04 '24 14:05 PHPirates

Should I call it autofill then?

jojo2357 avatar May 04 '24 16:05 jojo2357

It's called code completion or auto completion

PHPirates avatar May 04 '24 17:05 PHPirates