For example, when I use the command (in Overleaf/ShareLaTex):
\begin{figure}[H]
\centering
\includegraphics{some_graphic}
\caption{some_caption}
\label{fig:some_label}
\end{figure}
the \includegraphics{} comes without the [] parameter to change the size of the image, and \begin{figure} without the [H] option by default.
Is it possible to renew the command to make it default? By that I mean that when I type the \begin{figure} command it adds the [H] and [h] as well as [width=\textwidth] in the \includegraphics command, rather than making a global change in the preamble e.g.
[H]- this is basically a guarantee for bad placement of images – samcarter_is_at_topanswers.xyz Mar 12 '19 at 11:59Hplacement is wrong, particularly if one chooses to have all images as wide as the text width. – egreg Mar 12 '19 at 12:07[htbp]for images - this gives tex enough latitude to find the best possible position for you – samcarter_is_at_topanswers.xyz Mar 12 '19 at 12:25\begin{figure}has nothing to do with latex, that is entirely up to whatever editor you us (and which is no information you shared with us) – samcarter_is_at_topanswers.xyz Mar 12 '19 at 12:27Ginrelated question. No, autocompletion on Overleaf can't be customised like this at present. (So probably this question is not that relevant on tex.sx...) – imnothere Mar 12 '19 at 14:21Ginat first, but after the edit the question took another direction :) – samcarter_is_at_topanswers.xyz Mar 12 '19 at 14:23